Class WrappedKeyDecryptionAlgorithm
java.lang.Object
org.apache.cxf.rs.security.jose.jwe.WrappedKeyDecryptionAlgorithm
- All Implemented Interfaces:
KeyDecryptionProvider
- Direct Known Subclasses:
AesGcmWrapKeyDecryptionAlgorithm,AesWrapKeyDecryptionAlgorithm,RSAKeyDecryptionAlgorithm
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, KeyAlgorithm supportedAlgo) WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, KeyAlgorithm supportedAlgo, boolean unwrap) -
Method Summary
Modifier and TypeMethodDescriptionprotected AlgorithmParameterSpecgetAlgorithmParameterSpec(JweDecryptionInput jweDecryptionInput) protected Keyprotected StringgetContentEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput) byte[]getDecryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput) protected byte[]getEncryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput) protected intprotected StringgetKeyEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput) protected voidreportInvalidKeyAlgorithm(String keyAlgo) protected voidvalidateKeyEncryptionAlgorithm(String keyAlgo)
-
Field Details
-
LOG
-
-
Constructor Details
-
WrappedKeyDecryptionAlgorithm
-
WrappedKeyDecryptionAlgorithm
public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, KeyAlgorithm supportedAlgo, boolean unwrap)
-
-
Method Details
-
getDecryptedContentEncryptionKey
- Specified by:
getDecryptedContentEncryptionKeyin interfaceKeyDecryptionProvider
-
getCekDecryptionKey
-
getKeyCipherBlockSize
protected int getKeyCipherBlockSize() -
getKeyEncryptionAlgorithm
-
validateKeyEncryptionAlgorithm
-
reportInvalidKeyAlgorithm
-
getContentEncryptionAlgorithm
-
getAlgorithmParameterSpec
-
getEncryptedContentEncryptionKey
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKeyDecryptionProvider
-