public class AesCbcContentEncryptionAlgorithm extends AbstractContentEncryptionAlgorithm
LOG| Constructor and Description |
|---|
AesCbcContentEncryptionAlgorithm(byte[] cek,
byte[] iv,
ContentAlgorithm algo) |
AesCbcContentEncryptionAlgorithm(ContentAlgorithm algo,
boolean generateCekOnce) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAdditionalAuthenticationData(String headersJson,
byte[] aad) |
AlgorithmParameterSpec |
getAlgorithmParameterSpec(byte[] theIv) |
protected int |
getContentEncryptionKeySize(JweHeaders headers) |
protected static int |
getFullCekKeySize(String algoJwt) |
protected static String |
getHMACAlgorithm(String algoJwt) |
protected static ContentAlgorithm |
validateCekAlgorithm(ContentAlgorithm cekAlgo) |
getContentEncryptionKey, getInitVector, getIvSizegetAlgorithm, getAuthTagLenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithmpublic AesCbcContentEncryptionAlgorithm(ContentAlgorithm algo, boolean generateCekOnce)
public AesCbcContentEncryptionAlgorithm(byte[] cek,
byte[] iv,
ContentAlgorithm algo)
public AlgorithmParameterSpec getAlgorithmParameterSpec(byte[] theIv)
getAlgorithmParameterSpec in interface ContentEncryptionCipherPropertiesgetAlgorithmParameterSpec in class AbstractContentEncryptionCipherPropertiespublic byte[] getAdditionalAuthenticationData(String headersJson, byte[] aad)
getAdditionalAuthenticationData in interface ContentEncryptionCipherPropertiesgetAdditionalAuthenticationData in class AbstractContentEncryptionCipherPropertiesprotected int getContentEncryptionKeySize(JweHeaders headers)
getContentEncryptionKeySize in class AbstractContentEncryptionAlgorithmprotected static int getFullCekKeySize(String algoJwt)
protected static ContentAlgorithm validateCekAlgorithm(ContentAlgorithm cekAlgo)
Apache CXF