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:
ContentEncryptionAlgorithm, ContentEncryptionCipherProperties
Direct Known Subclasses:
AesGcmContentEncryptionAlgorithm

public abstract class AbstractContentEncryptionAlgorithm
extends AbstractContentEncryptionCipherProperties
implements ContentEncryptionAlgorithm


Constructor Summary
protected AbstractContentEncryptionAlgorithm(byte[] cek, byte[] iv, String algo)
           
 
Method Summary
 String getAlgorithm()
           
 byte[] getContentEncryptionKey(JweHeaders headers)
           
 byte[] getInitVector()
           
protected  int getIvSize()
           
 
Methods inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractContentEncryptionCipherProperties
getAdditionalAuthenticationData, 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, getAlgorithmParameterSpec
 

Constructor Detail

AbstractContentEncryptionAlgorithm

protected AbstractContentEncryptionAlgorithm(byte[] cek,
                                             byte[] iv,
                                             String algo)
Method Detail

getAlgorithm

public String getAlgorithm()
Specified by:
getAlgorithm in interface ContentEncryptionCipherProperties
Overrides:
getAlgorithm in class AbstractContentEncryptionCipherProperties

getContentEncryptionKey

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

getInitVector

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

getIvSize

protected int getIvSize()


Apache CXF