org.apache.cxf.rs.security.jose.jwe
Class WrappedKeyDecryptionAlgorithm
java.lang.Object
org.apache.cxf.rs.security.jose.jwe.WrappedKeyDecryptionAlgorithm
- All Implemented Interfaces:
- KeyDecryptionAlgorithm
- Direct Known Subclasses:
- AesGcmWrapKeyDecryptionAlgorithm, AesWrapKeyDecryptionAlgorithm, RSAKeyDecryptionAlgorithm
public class WrappedKeyDecryptionAlgorithm
- extends Object
- implements KeyDecryptionAlgorithm
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final Logger LOG
WrappedKeyDecryptionAlgorithm
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey,
KeyAlgorithm supportedAlgo)
WrappedKeyDecryptionAlgorithm
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey,
KeyAlgorithm supportedAlgo,
boolean unwrap)
getDecryptedContentEncryptionKey
public byte[] getDecryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput)
- Specified by:
getDecryptedContentEncryptionKey in interface KeyDecryptionAlgorithm
getCekDecryptionKey
protected Key getCekDecryptionKey()
getKeyCipherBlockSize
protected int getKeyCipherBlockSize()
getKeyEncryptionAlgorithm
protected String getKeyEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput)
validateKeyEncryptionAlgorithm
protected void validateKeyEncryptionAlgorithm(String keyAlgo)
reportInvalidKeyAlgorithm
protected void reportInvalidKeyAlgorithm(String keyAlgo)
getContentEncryptionAlgorithm
protected String getContentEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput)
getAlgorithmParameterSpec
protected AlgorithmParameterSpec getAlgorithmParameterSpec(JweDecryptionInput jweDecryptionInput)
getEncryptedContentEncryptionKey
protected byte[] getEncryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput)
getAlgorithm
public KeyAlgorithm getAlgorithm()
- Specified by:
getAlgorithm in interface KeyDecryptionAlgorithm
Apache CXF