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

java.lang.Object
  extended by org.apache.cxf.rs.security.jose.jwe.AbstractJweDecryption
All Implemented Interfaces:
JweDecryptionProvider, JweKeyProperties
Direct Known Subclasses:
JweDecryption

public abstract class AbstractJweDecryption
extends Object
implements JweDecryptionProvider


Field Summary
protected static Logger LOG
           
 
Constructor Summary
protected AbstractJweDecryption(KeyDecryptionAlgorithm keyDecryptionAlgo, ContentDecryptionAlgorithm contentDecryptionAlgo)
           
 
Method Summary
 byte[] decrypt(JweDecryptionInput jweDecryptionInput)
           
 JweDecryptionOutput decrypt(String content)
           
protected  JweDecryptionOutput doDecrypt(JweDecryptionInput jweDecryptionInput, byte[] cek)
           
protected  byte[] getActualCek(byte[] theCek, String algoJwt)
           
 ContentAlgorithm getContentAlgorithm()
           
protected  String getContentEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput)
           
protected  byte[] getContentEncryptionCipherAAD(JweDecryptionInput jweDecryptionInput)
           
protected  byte[] getContentEncryptionCipherInitVector(JweDecryptionInput jweDecryptionInput)
           
protected  AlgorithmParameterSpec getContentEncryptionCipherSpec(JweDecryptionInput jweDecryptionInput)
           
protected  byte[] getContentEncryptionKey(JweDecryptionInput jweDecryptionInput)
           
protected  byte[] getEncryptedContentEncryptionKey(JweCompactConsumer consumer)
           
protected  byte[] getEncryptedContentWithAuthTag(JweDecryptionInput jweDecryptionInput)
           
protected  byte[] getEncryptionAuthenticationTag(JweDecryptionInput jweDecryptionInput)
           
protected  int getEncryptionAuthenticationTagLenBits(JweDecryptionInput jweDecryptionInput)
           
 KeyAlgorithm getKeyAlgorithm()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final Logger LOG
Constructor Detail

AbstractJweDecryption

protected AbstractJweDecryption(KeyDecryptionAlgorithm keyDecryptionAlgo,
                                ContentDecryptionAlgorithm contentDecryptionAlgo)
Method Detail

getContentEncryptionKey

protected byte[] getContentEncryptionKey(JweDecryptionInput jweDecryptionInput)

decrypt

public JweDecryptionOutput decrypt(String content)
Specified by:
decrypt in interface JweDecryptionProvider

decrypt

public byte[] decrypt(JweDecryptionInput jweDecryptionInput)
Specified by:
decrypt in interface JweDecryptionProvider

doDecrypt

protected JweDecryptionOutput doDecrypt(JweDecryptionInput jweDecryptionInput,
                                        byte[] cek)

getEncryptedContentEncryptionKey

protected byte[] getEncryptedContentEncryptionKey(JweCompactConsumer consumer)

getContentEncryptionCipherSpec

protected AlgorithmParameterSpec getContentEncryptionCipherSpec(JweDecryptionInput jweDecryptionInput)

getContentEncryptionAlgorithm

protected String getContentEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput)

getContentEncryptionCipherAAD

protected byte[] getContentEncryptionCipherAAD(JweDecryptionInput jweDecryptionInput)

getEncryptedContentWithAuthTag

protected byte[] getEncryptedContentWithAuthTag(JweDecryptionInput jweDecryptionInput)

getContentEncryptionCipherInitVector

protected byte[] getContentEncryptionCipherInitVector(JweDecryptionInput jweDecryptionInput)

getEncryptionAuthenticationTag

protected byte[] getEncryptionAuthenticationTag(JweDecryptionInput jweDecryptionInput)

getEncryptionAuthenticationTagLenBits

protected int getEncryptionAuthenticationTagLenBits(JweDecryptionInput jweDecryptionInput)

getActualCek

protected byte[] getActualCek(byte[] theCek,
                              String algoJwt)

getKeyAlgorithm

public KeyAlgorithm getKeyAlgorithm()
Specified by:
getKeyAlgorithm in interface JweKeyProperties

getContentAlgorithm

public ContentAlgorithm getContentAlgorithm()
Specified by:
getContentAlgorithm in interface JweKeyProperties


Apache CXF