Class AesCbcContentEncryptionAlgorithm
- java.lang.Object
-
- org.apache.cxf.rs.security.jose.jwe.AbstractContentEncryptionCipherProperties
-
- org.apache.cxf.rs.security.jose.jwe.AbstractContentEncryptionAlgorithm
-
- org.apache.cxf.rs.security.jose.jwe.AesCbcContentEncryptionAlgorithm
-
- All Implemented Interfaces:
ContentEncryptionCipherProperties,ContentEncryptionProvider
public class AesCbcContentEncryptionAlgorithm extends AbstractContentEncryptionAlgorithm
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractContentEncryptionCipherProperties
LOG
-
-
Constructor Summary
Constructors Constructor Description AesCbcContentEncryptionAlgorithm(byte[] cek, byte[] iv, ContentAlgorithm algo)AesCbcContentEncryptionAlgorithm(ContentAlgorithm algo, boolean generateCekOnce)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getAdditionalAuthenticationData(String headersJson, byte[] aad)AlgorithmParameterSpecgetAlgorithmParameterSpec(byte[] theIv)protected intgetContentEncryptionKeySize(JweHeaders headers)protected static intgetFullCekKeySize(String algoJwt)protected static StringgetHMACAlgorithm(String algoJwt)protected static ContentAlgorithmvalidateCekAlgorithm(ContentAlgorithm cekAlgo)-
Methods inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractContentEncryptionAlgorithm
getContentEncryptionKey, getInitVector, getIvSize
-
Methods inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractContentEncryptionCipherProperties
getAlgorithm, getAuthTagLen
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cxf.rs.security.jose.jwe.ContentEncryptionCipherProperties
getAlgorithm
-
-
-
-
Constructor Detail
-
AesCbcContentEncryptionAlgorithm
public AesCbcContentEncryptionAlgorithm(ContentAlgorithm algo, boolean generateCekOnce)
-
AesCbcContentEncryptionAlgorithm
public AesCbcContentEncryptionAlgorithm(byte[] cek, byte[] iv, ContentAlgorithm algo)
-
-
Method Detail
-
getAlgorithmParameterSpec
public AlgorithmParameterSpec getAlgorithmParameterSpec(byte[] theIv)
- Specified by:
getAlgorithmParameterSpecin interfaceContentEncryptionCipherProperties- Overrides:
getAlgorithmParameterSpecin classAbstractContentEncryptionCipherProperties
-
getAdditionalAuthenticationData
public byte[] getAdditionalAuthenticationData(String headersJson, byte[] aad)
- Specified by:
getAdditionalAuthenticationDatain interfaceContentEncryptionCipherProperties- Overrides:
getAdditionalAuthenticationDatain classAbstractContentEncryptionCipherProperties
-
getContentEncryptionKeySize
protected int getContentEncryptionKeySize(JweHeaders headers)
- Overrides:
getContentEncryptionKeySizein classAbstractContentEncryptionAlgorithm
-
getFullCekKeySize
protected static int getFullCekKeySize(String algoJwt)
-
validateCekAlgorithm
protected static ContentAlgorithm validateCekAlgorithm(ContentAlgorithm cekAlgo)
-
-