org.apache.cxf.rs.security.jose.jwe
Class AbstractJweDecryption
java.lang.Object
org.apache.cxf.rs.security.jose.jwe.AbstractJweDecryption
- All Implemented Interfaces:
- JweDecryptionProvider, JweKeyProperties
- 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(KeyDecryptionAlgorithm keyDecryptionAlgo,
ContentDecryptionAlgorithm contentDecryptionAlgo)
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 String getKeyAlgorithm()
- Specified by:
getKeyAlgorithm in interface JweKeyProperties
getContentAlgorithm
public String getContentAlgorithm()
- Specified by:
getContentAlgorithm in interface JweKeyProperties
Apache CXF