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 |
WrappedKeyDecryptionAlgorithm
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey,
String supportedAlgo)
WrappedKeyDecryptionAlgorithm
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey,
String 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)
getContentEncryptionAlgorithm
protected String getContentEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput)
getAlgorithmParameterSpec
protected AlgorithmParameterSpec getAlgorithmParameterSpec(JweDecryptionInput jweDecryptionInput)
getEncryptedContentEncryptionKey
protected byte[] getEncryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput)
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm in interface KeyDecryptionAlgorithm
Apache CXF