public class WrappedKeyDecryptionAlgorithm extends Object implements KeyDecryptionAlgorithm
| Constructor and Description |
|---|
WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey,
String supportedAlgo) |
WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey,
String supportedAlgo,
boolean unwrap) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm() |
protected AlgorithmParameterSpec |
getAlgorithmParameterSpec(JweCompactConsumer consumer) |
protected Key |
getCekDecryptionKey() |
protected String |
getContentEncryptionAlgorithm(JweCompactConsumer consumer) |
byte[] |
getDecryptedContentEncryptionKey(JweCompactConsumer consumer) |
protected byte[] |
getEncryptedContentEncryptionKey(JweCompactConsumer consumer) |
protected int |
getKeyCipherBlockSize() |
protected String |
getKeyEncryptionAlgorithm(JweCompactConsumer consumer) |
protected void |
validateKeyEncryptionAlgorithm(String keyAlgo) |
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, String supportedAlgo)
public byte[] getDecryptedContentEncryptionKey(JweCompactConsumer consumer)
getDecryptedContentEncryptionKey in interface KeyDecryptionAlgorithmprotected Key getCekDecryptionKey()
protected int getKeyCipherBlockSize()
protected String getKeyEncryptionAlgorithm(JweCompactConsumer consumer)
protected void validateKeyEncryptionAlgorithm(String keyAlgo)
protected String getContentEncryptionAlgorithm(JweCompactConsumer consumer)
protected AlgorithmParameterSpec getAlgorithmParameterSpec(JweCompactConsumer consumer)
protected byte[] getEncryptedContentEncryptionKey(JweCompactConsumer consumer)
public String getAlgorithm()
getAlgorithm in interface KeyDecryptionAlgorithmApache CXF