org.apache.cxf.rs.security.jose.jwe
Class AbstractJweDecryption
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJweDecryption
protected AbstractJweDecryption(JoseHeadersReader theReader,
KeyDecryptionAlgorithm keyDecryptionAlgo,
ContentDecryptionAlgorithm contentDecryptionAlgo)
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