public class AesCbcHmacJweEncryption extends AbstractJweEncryption
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AesCbcHmacJweEncryption.MacState |
AbstractJweEncryption.JweEncryptionInternalDEFAULT_AUTH_TAG_LENGTH| Constructor and Description |
|---|
AesCbcHmacJweEncryption(String cekAlgoJwt,
byte[] cek,
byte[] iv,
KeyEncryptionAlgorithm keyEncryptionAlgorithm) |
AesCbcHmacJweEncryption(String cekAlgoJwt,
KeyEncryptionAlgorithm keyEncryptionAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
protected static byte[] |
doGetActualCek(byte[] theCek,
String algoJwt) |
protected byte[] |
getActualCek(byte[] theCek,
String algoJwt) |
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 JweCompactProducer |
getJweCompactProducer(AbstractJweEncryption.JweEncryptionInternal state,
byte[] cipher) |
protected static byte[] |
signAndGetTag(AesCbcHmacJweEncryption.MacState macState) |
createCekSecretKey, createJweEncryptionState, encrypt, getAAD, getAlgorithmParameterSpec, getContentAlgorithm, getContentEncryptionAlgoJava, getContentEncryptionAlgoJwt, getContentEncryptionAlgorithm, getContentEncryptionKey, getJwtHeadersWriter, getKeyAlgorithm, getKeyEncryptionAlgo, getProvidedContentEncryptionKeypublic AesCbcHmacJweEncryption(String cekAlgoJwt, KeyEncryptionAlgorithm keyEncryptionAlgorithm)
public AesCbcHmacJweEncryption(String cekAlgoJwt, byte[] cek, byte[] iv, KeyEncryptionAlgorithm 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 JweCompactProducer getJweCompactProducer(AbstractJweEncryption.JweEncryptionInternal state, byte[] cipher)
getJweCompactProducer 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