Class AesGcmWrapKeyEncryptionAlgorithm
- java.lang.Object
-
- org.apache.cxf.rs.security.jose.jwe.AbstractWrapKeyEncryptionAlgorithm
-
- org.apache.cxf.rs.security.jose.jwe.AesGcmWrapKeyEncryptionAlgorithm
-
- All Implemented Interfaces:
KeyEncryptionProvider
public class AesGcmWrapKeyEncryptionAlgorithm extends AbstractWrapKeyEncryptionAlgorithm
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractWrapKeyEncryptionAlgorithm
LOG
-
-
Constructor Summary
Constructors Constructor Description AesGcmWrapKeyEncryptionAlgorithm(byte[] keyBytes, KeyAlgorithm keyAlgoJwt)AesGcmWrapKeyEncryptionAlgorithm(String encodedKey, KeyAlgorithm keyAlgoJwt)AesGcmWrapKeyEncryptionAlgorithm(SecretKey key, KeyAlgorithm keyAlgoJwt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AlgorithmParameterSpecgetAlgorithmParameterSpec(JweHeaders headers)byte[]getEncryptedContentEncryptionKey(JweHeaders headers, byte[] cek)-
Methods inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractWrapKeyEncryptionAlgorithm
checkAlgorithm, checkAlgorithms, getAlgorithm, getContentEncryptionAlgoJava, getKeyEncryptionAlgoJava
-
-
-
-
Constructor Detail
-
AesGcmWrapKeyEncryptionAlgorithm
public AesGcmWrapKeyEncryptionAlgorithm(String encodedKey, KeyAlgorithm keyAlgoJwt)
-
AesGcmWrapKeyEncryptionAlgorithm
public AesGcmWrapKeyEncryptionAlgorithm(byte[] keyBytes, KeyAlgorithm keyAlgoJwt)
-
AesGcmWrapKeyEncryptionAlgorithm
public AesGcmWrapKeyEncryptionAlgorithm(SecretKey key, KeyAlgorithm keyAlgoJwt)
-
-
Method Detail
-
getEncryptedContentEncryptionKey
public byte[] getEncryptedContentEncryptionKey(JweHeaders headers, byte[] cek)
- Specified by:
getEncryptedContentEncryptionKeyin interfaceKeyEncryptionProvider- Overrides:
getEncryptedContentEncryptionKeyin classAbstractWrapKeyEncryptionAlgorithm
-
getAlgorithmParameterSpec
protected AlgorithmParameterSpec getAlgorithmParameterSpec(JweHeaders headers)
- Overrides:
getAlgorithmParameterSpecin classAbstractWrapKeyEncryptionAlgorithm
-
-