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

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.jwe.AbstractJweDecryption
All Implemented Interfaces:
JweDecryption
Direct Known Subclasses:
DirectKeyJweDecryption, WrappedKeyJweDecryption

public abstract class AbstractJweDecryption
extends Object
implements JweDecryption


Constructor Summary
protected AbstractJweDecryption(JweCryptoProperties props, JwtHeadersReader thereader)
           
 
Method Summary
 byte[] decrypt(JweCompactConsumer consumer)
           
 JweDecryptionOutput decrypt(String content)
           
protected  JweDecryptionOutput doDecrypt(JweCompactConsumer consumer)
           
protected  String getContentEncryptionAlgorithm(JweCompactConsumer consumer)
           
protected  byte[] getContentEncryptionCipherAAD(JweCompactConsumer consumer)
           
protected  byte[] getContentEncryptionCipherInitVector(JweCompactConsumer consumer)
           
protected  AlgorithmParameterSpec getContentEncryptionCipherSpec(JweCompactConsumer consumer)
           
protected abstract  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(JweCryptoProperties props,
                                JwtHeadersReader thereader)
Method Detail

getContentEncryptionKey

protected abstract byte[] getContentEncryptionKey(JweCompactConsumer consumer)

decrypt

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

decrypt

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

doDecrypt

protected JweDecryptionOutput doDecrypt(JweCompactConsumer consumer)

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)


Apache CXF