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, getIvSize
getAlgorithm, getAuthTagLen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithm
public AesCbcContentEncryptionAlgorithm(ContentAlgorithm algo, boolean generateCekOnce)
public AesCbcContentEncryptionAlgorithm(byte[] cek, byte[] iv, ContentAlgorithm algo)
public AlgorithmParameterSpec getAlgorithmParameterSpec(byte[] theIv)
getAlgorithmParameterSpec
in interface ContentEncryptionCipherProperties
getAlgorithmParameterSpec
in class AbstractContentEncryptionCipherProperties
public byte[] getAdditionalAuthenticationData(String headersJson, byte[] aad)
getAdditionalAuthenticationData
in interface ContentEncryptionCipherProperties
getAdditionalAuthenticationData
in class AbstractContentEncryptionCipherProperties
protected int getContentEncryptionKeySize(JweHeaders headers)
getContentEncryptionKeySize
in class AbstractContentEncryptionAlgorithm
protected static int getFullCekKeySize(String algoJwt)
protected static ContentAlgorithm validateCekAlgorithm(ContentAlgorithm cekAlgo)
Apache CXF