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(JweDecryptionInput jweDecryptionInput) |
protected Key |
getCekDecryptionKey() |
protected String |
getContentEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput) |
byte[] |
getDecryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput) |
protected byte[] |
getEncryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput) |
protected int |
getKeyCipherBlockSize() |
protected String |
getKeyEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput) |
protected void |
validateKeyEncryptionAlgorithm(String keyAlgo) |
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, String supportedAlgo)
public byte[] getDecryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput)
getDecryptedContentEncryptionKey in interface KeyDecryptionAlgorithmprotected Key getCekDecryptionKey()
protected int getKeyCipherBlockSize()
protected String getKeyEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput)
protected void validateKeyEncryptionAlgorithm(String keyAlgo)
protected String getContentEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput)
protected AlgorithmParameterSpec getAlgorithmParameterSpec(JweDecryptionInput jweDecryptionInput)
protected byte[] getEncryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput)
public String getAlgorithm()
getAlgorithm in interface KeyDecryptionAlgorithmApache CXF