public class AesCbcHmacJweEncryption extends JweEncryption
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AesCbcHmacJweEncryption.MacState |
AbstractJweEncryption.JweEncryptionInternalDEFAULT_AUTH_TAG_LENGTH, LOG| Constructor and Description |
|---|
AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt,
byte[] cek,
byte[] iv,
KeyEncryptionProvider keyEncryptionAlgorithm) |
AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt,
KeyEncryptionProvider keyEncryptionAlgorithm) |
AesCbcHmacJweEncryption(String cekAlgo,
KeyEncryptionProvider keyEncryptionAlgorithm) |
| 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 int |
getCekSize(String algoJwt) |
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, getProvidedContentEncryptionKeypublic AesCbcHmacJweEncryption(String cekAlgo, KeyEncryptionProvider keyEncryptionAlgorithm)
public AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt, KeyEncryptionProvider keyEncryptionAlgorithm)
public AesCbcHmacJweEncryption(ContentAlgorithm cekAlgoJwt, byte[] cek, byte[] iv, KeyEncryptionProvider keyEncryptionAlgorithm)
protected byte[] getActualCek(byte[] theCek,
String algoJwt)
getActualCek in class AbstractJweEncryptionprotected int getCekSize(String algoJwt)
getCekSize in class AbstractJweEncryptionprotected static byte[] doGetActualCek(byte[] theCek,
String algoJwt)
protected static int getFullCekKeySize(String algoJwt)
protected byte[] getActualCipher(byte[] cipher)
getActualCipher in class AbstractJweEncryptionprotected byte[] getAuthenticationTag(AbstractJweEncryption.JweEncryptionInternal state, byte[] cipher)
getAuthenticationTag in class AbstractJweEncryptionprotected 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 AbstractJweEncryptionprotected byte[] getEncryptedContentEncryptionKey(JweHeaders headers, byte[] theCek)
getEncryptedContentEncryptionKey in class AbstractJweEncryptionApache CXF