Class AesGcmWrapKeyDecryptionAlgorithm
- java.lang.Object
-
- org.apache.cxf.rs.security.jose.jwe.WrappedKeyDecryptionAlgorithm
-
- org.apache.cxf.rs.security.jose.jwe.AesGcmWrapKeyDecryptionAlgorithm
-
- All Implemented Interfaces:
KeyDecryptionProvider
public class AesGcmWrapKeyDecryptionAlgorithm extends WrappedKeyDecryptionAlgorithm
-
-
Constructor Summary
Constructors Constructor Description AesGcmWrapKeyDecryptionAlgorithm(byte[] secretKey)AesGcmWrapKeyDecryptionAlgorithm(byte[] secretKey, KeyAlgorithm supportedAlgo)AesGcmWrapKeyDecryptionAlgorithm(String encodedKey)AesGcmWrapKeyDecryptionAlgorithm(String encodedKey, KeyAlgorithm supportedAlgo)AesGcmWrapKeyDecryptionAlgorithm(SecretKey secretKey)AesGcmWrapKeyDecryptionAlgorithm(SecretKey secretKey, KeyAlgorithm supportedAlgo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AlgorithmParameterSpecgetAlgorithmParameterSpec(JweDecryptionInput jweDecryptionInput)protected byte[]getEncryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput)protected voidvalidateKeyEncryptionAlgorithm(String keyAlgo)-
Methods inherited from class org.apache.cxf.rs.security.jose.jwe.WrappedKeyDecryptionAlgorithm
getAlgorithm, getCekDecryptionKey, getContentEncryptionAlgorithm, getDecryptedContentEncryptionKey, getKeyCipherBlockSize, getKeyEncryptionAlgorithm, reportInvalidKeyAlgorithm
-
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
-
Constructor Detail
-
AesGcmWrapKeyDecryptionAlgorithm
public AesGcmWrapKeyDecryptionAlgorithm(String encodedKey)
-
AesGcmWrapKeyDecryptionAlgorithm
public AesGcmWrapKeyDecryptionAlgorithm(String encodedKey, KeyAlgorithm supportedAlgo)
-
AesGcmWrapKeyDecryptionAlgorithm
public AesGcmWrapKeyDecryptionAlgorithm(byte[] secretKey)
-
AesGcmWrapKeyDecryptionAlgorithm
public AesGcmWrapKeyDecryptionAlgorithm(byte[] secretKey, KeyAlgorithm supportedAlgo)
-
AesGcmWrapKeyDecryptionAlgorithm
public AesGcmWrapKeyDecryptionAlgorithm(SecretKey secretKey)
-
AesGcmWrapKeyDecryptionAlgorithm
public AesGcmWrapKeyDecryptionAlgorithm(SecretKey secretKey, KeyAlgorithm supportedAlgo)
-
-
Method Detail
-
getEncryptedContentEncryptionKey
protected byte[] getEncryptedContentEncryptionKey(JweDecryptionInput jweDecryptionInput)
- Overrides:
getEncryptedContentEncryptionKeyin classWrappedKeyDecryptionAlgorithm
-
getAlgorithmParameterSpec
protected AlgorithmParameterSpec getAlgorithmParameterSpec(JweDecryptionInput jweDecryptionInput)
- Overrides:
getAlgorithmParameterSpecin classWrappedKeyDecryptionAlgorithm
-
validateKeyEncryptionAlgorithm
protected void validateKeyEncryptionAlgorithm(String keyAlgo)
- Overrides:
validateKeyEncryptionAlgorithmin classWrappedKeyDecryptionAlgorithm
-
-