Class AbstractContentEncryptionAlgorithm
- java.lang.Object
-
- org.apache.cxf.rs.security.jose.jwe.AbstractContentEncryptionCipherProperties
-
- org.apache.cxf.rs.security.jose.jwe.AbstractContentEncryptionAlgorithm
-
- All Implemented Interfaces:
ContentEncryptionCipherProperties,ContentEncryptionProvider
- Direct Known Subclasses:
AesCbcContentEncryptionAlgorithm,AesGcmContentEncryptionAlgorithm
public abstract class AbstractContentEncryptionAlgorithm extends AbstractContentEncryptionCipherProperties implements ContentEncryptionProvider
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractContentEncryptionCipherProperties
LOG
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractContentEncryptionAlgorithm(byte[] cek, byte[] iv, ContentAlgorithm algo)protectedAbstractContentEncryptionAlgorithm(ContentAlgorithm algo, boolean generateCekOnce)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getContentEncryptionKey(JweHeaders headers)protected intgetContentEncryptionKeySize(JweHeaders headers)byte[]getInitVector()protected intgetIvSize()-
Methods inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractContentEncryptionCipherProperties
getAdditionalAuthenticationData, getAlgorithm, getAlgorithmParameterSpec, 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
getAdditionalAuthenticationData, getAlgorithm, getAlgorithmParameterSpec
-
-
-
-
Constructor Detail
-
AbstractContentEncryptionAlgorithm
protected AbstractContentEncryptionAlgorithm(ContentAlgorithm algo, boolean generateCekOnce)
-
AbstractContentEncryptionAlgorithm
protected AbstractContentEncryptionAlgorithm(byte[] cek, byte[] iv, ContentAlgorithm algo)
-
-
Method Detail
-
getContentEncryptionKey
public byte[] getContentEncryptionKey(JweHeaders headers)
- Specified by:
getContentEncryptionKeyin interfaceContentEncryptionProvider
-
getInitVector
public byte[] getInitVector()
- Specified by:
getInitVectorin interfaceContentEncryptionProvider
-
getContentEncryptionKeySize
protected int getContentEncryptionKeySize(JweHeaders headers)
-
getIvSize
protected int getIvSize()
-
-