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
Direct Known Subclasses:
AesCbcHmacJweDecryption, DirectKeyJweDecryption, WrappedKeyJweDecryption

public abstract class AbstractJweDecryption
extends Object
implements JweDecryptionProvider


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

Constructor Detail

AbstractJweDecryption

protected AbstractJweDecryption(JoseHeadersReader theReader,
                                KeyDecryptionAlgorithm keyDecryptionAlgo,
                                ContentDecryptionAlgorithm contentDecryptionAlgo)
Method Detail

getContentEncryptionKey

protected byte[] getContentEncryptionKey(JweCompactConsumer consumer)

decrypt

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

decrypt

public byte[] decrypt(JweCompactConsumer consumer)
Specified by:
decrypt in interface JweDecryptionProvider

doDecrypt

protected JweDecryptionOutput doDecrypt(JweCompactConsumer consumer)

doDecrypt

protected JweDecryptionOutput doDecrypt(JweCompactConsumer consumer,
                                        byte[] cek)

getEncryptedContentEncryptionKey

protected byte[] getEncryptedContentEncryptionKey(JweCompactConsumer consumer)

getContentEncryptionCipherSpec

protected AlgorithmParameterSpec getContentEncryptionCipherSpec(JweCompactConsumer consumer)

getContentEncryptionAlgorithm

protected String getContentEncryptionAlgorithm(JweCompactConsumer consumer)

getContentEncryptionCipherAAD

protected byte[] getContentEncryptionCipherAAD(JweCompactConsumer consumer)

getEncryptedContentWithAuthTag

protected byte[] getEncryptedContentWithAuthTag(JweCompactConsumer consumer)

getContentEncryptionCipherInitVector

protected byte[] getContentEncryptionCipherInitVector(JweCompactConsumer consumer)

getEncryptionAuthenticationTag

protected byte[] getEncryptionAuthenticationTag(JweCompactConsumer consumer)

getEncryptionAuthenticationTagLenBits

protected int getEncryptionAuthenticationTagLenBits(JweCompactConsumer consumer)

getActualCek

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


Apache CXF