Class WrappedKeyDecryptionAlgorithm
- java.lang.Object
-
- org.apache.cxf.rs.security.jose.jwe.WrappedKeyDecryptionAlgorithm
-
- All Implemented Interfaces:
KeyDecryptionProvider
- Direct Known Subclasses:
AesGcmWrapKeyDecryptionAlgorithm,AesWrapKeyDecryptionAlgorithm,RSAKeyDecryptionAlgorithm
public class WrappedKeyDecryptionAlgorithm extends Object implements KeyDecryptionProvider
-
-
Constructor Summary
Constructors Constructor Description WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, KeyAlgorithm supportedAlgo)WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, KeyAlgorithm supportedAlgo, boolean unwrap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyAlgorithmgetAlgorithm()protected AlgorithmParameterSpecgetAlgorithmParameterSpec(JweDecryptionInput jweDecryptionInput)protected KeygetCekDecryptionKey()protected StringgetContentEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput)byte[]getDecryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput)protected byte[]getEncryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput)protected intgetKeyCipherBlockSize()protected StringgetKeyEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput)protected voidreportInvalidKeyAlgorithm(String keyAlgo)protected voidvalidateKeyEncryptionAlgorithm(String keyAlgo)
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
-
Constructor Detail
-
WrappedKeyDecryptionAlgorithm
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, KeyAlgorithm supportedAlgo)
-
WrappedKeyDecryptionAlgorithm
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, KeyAlgorithm supportedAlgo, boolean unwrap)
-
-
Method Detail
-
getDecryptedContentEncryptionKey
public byte[] getDecryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput)
- Specified by:
getDecryptedContentEncryptionKeyin interfaceKeyDecryptionProvider
-
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:
getAlgorithmin interfaceKeyDecryptionProvider
-
-