Class AesCbcHmacJweEncryption
java.lang.Object
org.apache.cxf.rs.security.jose.jwe.AbstractJweEncryption
org.apache.cxf.rs.security.jose.jwe.JweEncryption
org.apache.cxf.rs.security.jose.jwe.AesCbcHmacJweEncryption
- All Implemented Interfaces:
JweEncryptionProvider,JweKeyProperties
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractJweEncryption
AbstractJweEncryption.JweEncryptionInternal -
Field Summary
Fields inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractJweEncryption
DEFAULT_AUTH_TAG_LENGTH, LOG -
Constructor Summary
ConstructorsConstructorDescriptionAesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt, byte[] cek, byte[] iv, KeyEncryptionProvider keyEncryptionAlgorithm) AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt, KeyEncryptionProvider keyEncryptionAlgorithm) AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt, KeyEncryptionProvider keyEncryptionAlgorithm, boolean generateCekOnce) AesCbcHmacJweEncryption(KeyEncryptionProvider keyEncryptionAlgorithm, AesCbcContentEncryptionAlgorithm contentEncryptionAlgorithm) -
Method Summary
Modifier and TypeMethodDescriptionprotected static byte[]doGetActualCek(byte[] theCek, String algoJwt) protected byte[]getActualCek(byte[] theCek, String algoJwt) protected byte[]getActualCipher(byte[] cipher) protected byte[]getAuthenticationTag(AbstractJweEncryption.JweEncryptionInternal state, byte[] cipher) protected AuthenticationTagProducerprotected byte[]getEncryptedContentEncryptionKey(JweHeaders headers, byte[] theCek) protected static AesCbcHmacJweEncryption.MacStategetInitializedMacState(byte[] secretKey, byte[] theIv, byte[] extraAad, JweHeaders theHeaders, String protectedHeadersJson) protected static byte[]Methods inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractJweEncryption
createCekSecretKey, encrypt, encryptInternal, getAAD, getAlgorithmParameterSpec, getContentAlgorithm, getContentEncryptionAlgoJava, getContentEncryptionAlgoJwt, getContentEncryptionAlgorithm, getContentEncryptionKey, getEncryptionOutput, getJwtHeadersWriter, getKeyAlgorithm, getKeyEncryptionAlgo
-
Constructor Details
-
AesCbcHmacJweEncryption
public AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt, KeyEncryptionProvider keyEncryptionAlgorithm) -
AesCbcHmacJweEncryption
public AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt, KeyEncryptionProvider keyEncryptionAlgorithm, boolean generateCekOnce) -
AesCbcHmacJweEncryption
public AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt, byte[] cek, byte[] iv, KeyEncryptionProvider keyEncryptionAlgorithm) -
AesCbcHmacJweEncryption
public AesCbcHmacJweEncryption(KeyEncryptionProvider keyEncryptionAlgorithm, AesCbcContentEncryptionAlgorithm contentEncryptionAlgorithm)
-
-
Method Details
-
getActualCek
- Overrides:
getActualCekin classAbstractJweEncryption
-
doGetActualCek
-
getActualCipher
protected byte[] getActualCipher(byte[] cipher) - Overrides:
getActualCipherin classAbstractJweEncryption
-
getAuthenticationTag
protected byte[] getAuthenticationTag(AbstractJweEncryption.JweEncryptionInternal state, byte[] cipher) - Overrides:
getAuthenticationTagin classAbstractJweEncryption
-
signAndGetTag
-
getInitializedMacState
protected static AesCbcHmacJweEncryption.MacState getInitializedMacState(byte[] secretKey, byte[] theIv, byte[] extraAad, JweHeaders theHeaders, String protectedHeadersJson) -
getAuthenticationTagProducer
protected AuthenticationTagProducer getAuthenticationTagProducer(AbstractJweEncryption.JweEncryptionInternal state) - Overrides:
getAuthenticationTagProducerin classAbstractJweEncryption
-
getEncryptedContentEncryptionKey
- Overrides:
getEncryptedContentEncryptionKeyin classAbstractJweEncryption
-