Class AbstractJweDecryption
- java.lang.Object
-
- 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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractJweDecryption(KeyDecryptionProvider keyDecryptionAlgo, ContentDecryptionProvider contentDecryptionAlgo)
-
Method Summary
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
-
Constructor Detail
-
AbstractJweDecryption
protected AbstractJweDecryption(KeyDecryptionProvider keyDecryptionAlgo, ContentDecryptionProvider contentDecryptionAlgo)
-
-
Method Detail
-
decrypt
public JweDecryptionOutput decrypt(String content)
- Specified by:
decryptin interfaceJweDecryptionProvider
-
decrypt
public byte[] decrypt(JweDecryptionInput jweDecryptionInput)
- Specified by:
decryptin interfaceJweDecryptionProvider
-
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:
getKeyAlgorithmin interfaceJweKeyProperties
-
getContentAlgorithm
public ContentAlgorithm getContentAlgorithm()
- Specified by:
getContentAlgorithmin interfaceJweKeyProperties
-
-