public class AesCbcHmacJweEncryption extends JweEncryption
Modifier and Type | Class and Description |
---|---|
protected static class |
AesCbcHmacJweEncryption.MacState |
AbstractJweEncryption.JweEncryptionInternal
DEFAULT_AUTH_TAG_LENGTH, LOG
Constructor and Description |
---|
AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt,
byte[] cek,
byte[] iv,
KeyEncryptionProvider keyEncryptionAlgorithm) |
AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt,
KeyEncryptionProvider keyEncryptionAlgorithm) |
AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt,
KeyEncryptionProvider keyEncryptionAlgorithm,
boolean generateCekOnce) |
Modifier and Type | Method and Description |
---|---|
protected 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 AuthenticationTagProducer |
getAuthenticationTagProducer(AbstractJweEncryption.JweEncryptionInternal state) |
protected byte[] |
getEncryptedContentEncryptionKey(JweHeaders headers,
byte[] theCek) |
protected static int |
getFullCekKeySize(String algoJwt) |
protected static AesCbcHmacJweEncryption.MacState |
getInitializedMacState(byte[] secretKey,
byte[] theIv,
byte[] extraAad,
JweHeaders theHeaders,
String protectedHeadersJson) |
protected static byte[] |
signAndGetTag(AesCbcHmacJweEncryption.MacState macState) |
createCekSecretKey, encrypt, encryptInternal, getAAD, getAlgorithmParameterSpec, getContentAlgorithm, getContentEncryptionAlgoJava, getContentEncryptionAlgoJwt, getContentEncryptionAlgorithm, getContentEncryptionKey, getEncryptionOutput, getJwtHeadersWriter, getKeyAlgorithm, getKeyEncryptionAlgo
public AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt, KeyEncryptionProvider keyEncryptionAlgorithm)
public AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt, KeyEncryptionProvider keyEncryptionAlgorithm, boolean generateCekOnce)
public AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt, byte[] cek, byte[] iv, KeyEncryptionProvider keyEncryptionAlgorithm)
protected byte[] getActualCek(byte[] theCek, String algoJwt)
getActualCek
in class AbstractJweEncryption
protected static byte[] doGetActualCek(byte[] theCek, String algoJwt)
protected static int getFullCekKeySize(String algoJwt)
protected byte[] getActualCipher(byte[] cipher)
getActualCipher
in class AbstractJweEncryption
protected byte[] getAuthenticationTag(AbstractJweEncryption.JweEncryptionInternal state, byte[] cipher)
getAuthenticationTag
in class AbstractJweEncryption
protected static byte[] signAndGetTag(AesCbcHmacJweEncryption.MacState macState)
protected static AesCbcHmacJweEncryption.MacState getInitializedMacState(byte[] secretKey, byte[] theIv, byte[] extraAad, JweHeaders theHeaders, String protectedHeadersJson)
protected AuthenticationTagProducer getAuthenticationTagProducer(AbstractJweEncryption.JweEncryptionInternal state)
getAuthenticationTagProducer
in class AbstractJweEncryption
protected byte[] getEncryptedContentEncryptionKey(JweHeaders headers, byte[] theCek)
getEncryptedContentEncryptionKey
in class AbstractJweEncryption
Apache CXF