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, RSAOaepKeyDecryptionAlgorithm
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 |
WrappedKeyDecryptionAlgorithm
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey)
WrappedKeyDecryptionAlgorithm
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey,
String supportedAlgo)
WrappedKeyDecryptionAlgorithm
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey,
String supportedAlgo,
boolean unwrap)
getDecryptedContentEncryptionKey
public byte[] getDecryptedContentEncryptionKey(JweCompactConsumer consumer)
- Specified by:
getDecryptedContentEncryptionKey in interface KeyDecryptionAlgorithm
getCekDecryptionKey
protected Key getCekDecryptionKey()
getKeyCipherBlockSize
protected int getKeyCipherBlockSize()
getKeyEncryptionAlgorithm
protected String getKeyEncryptionAlgorithm(JweCompactConsumer consumer)
validateKeyEncryptionAlgorithm
protected void validateKeyEncryptionAlgorithm(String keyAlgo)
getContentEncryptionAlgorithm
protected String getContentEncryptionAlgorithm(JweCompactConsumer consumer)
getAlgorithmParameterSpec
protected AlgorithmParameterSpec getAlgorithmParameterSpec(JweCompactConsumer consumer)
getEncryptedContentEncryptionKey
protected byte[] getEncryptedContentEncryptionKey(JweCompactConsumer consumer)
Apache CXF