org.apache.cxf.rs.security.jose.jwe
Class AbstractContentEncryptionAlgorithm

java.lang.Object
  extended by org.apache.cxf.rs.security.jose.jwe.AbstractContentEncryptionCipherProperties
      extended by org.apache.cxf.rs.security.jose.jwe.AbstractContentEncryptionAlgorithm
All Implemented Interfaces:
ContentEncryptionCipherProperties, ContentEncryptionProvider
Direct Known Subclasses:
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
protected AbstractContentEncryptionAlgorithm(byte[] cek, byte[] iv, ContentAlgorithm algo)
           
 
Method Summary
 byte[] getContentEncryptionKey(JweHeaders headers)
           
 byte[] getInitVector()
           
protected  int getIvSize()
           
 
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(byte[] cek,
                                             byte[] iv,
                                             ContentAlgorithm algo)
Method Detail

getContentEncryptionKey

public byte[] getContentEncryptionKey(JweHeaders headers)
Specified by:
getContentEncryptionKey in interface ContentEncryptionProvider

getInitVector

public byte[] getInitVector()
Specified by:
getInitVector in interface ContentEncryptionProvider

getIvSize

protected int getIvSize()


Apache CXF