public class WrappedKeyDecryptionAlgorithm extends Object implements KeyDecryptionAlgorithm
Constructor and Description |
---|
WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey,
KeyAlgorithm supportedAlgo) |
WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey,
KeyAlgorithm supportedAlgo,
boolean unwrap) |
Modifier and Type | Method and Description |
---|---|
KeyAlgorithm |
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 |
reportInvalidKeyAlgorithm(String keyAlgo) |
protected void |
validateKeyEncryptionAlgorithm(String keyAlgo) |
protected static final Logger LOG
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, KeyAlgorithm supportedAlgo)
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, KeyAlgorithm supportedAlgo, boolean unwrap)
public byte[] getDecryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput)
getDecryptedContentEncryptionKey
in interface KeyDecryptionAlgorithm
protected Key getCekDecryptionKey()
protected int getKeyCipherBlockSize()
protected String getKeyEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput)
protected void validateKeyEncryptionAlgorithm(String keyAlgo)
protected void reportInvalidKeyAlgorithm(String keyAlgo)
protected String getContentEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput)
protected AlgorithmParameterSpec getAlgorithmParameterSpec(JweDecryptionInput jweDecryptionInput)
protected byte[] getEncryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput)
public KeyAlgorithm getAlgorithm()
getAlgorithm
in interface KeyDecryptionAlgorithm
Apache CXF