public abstract class AbstractJweDecryption extends Object implements JweDecryptionProvider
Modifier | Constructor and Description |
---|---|
protected |
AbstractJweDecryption(KeyDecryptionProvider keyDecryptionAlgo,
ContentDecryptionProvider contentDecryptionAlgo) |
protected static final Logger LOG
protected AbstractJweDecryption(KeyDecryptionProvider keyDecryptionAlgo, ContentDecryptionProvider contentDecryptionAlgo)
public JweDecryptionOutput decrypt(String content)
decrypt
in interface JweDecryptionProvider
public byte[] decrypt(JweDecryptionInput jweDecryptionInput)
decrypt
in interface JweDecryptionProvider
protected JweDecryptionOutput doDecrypt(JweDecryptionInput jweDecryptionInput, byte[] cek)
protected byte[] getEncryptedContentEncryptionKey(JweCompactConsumer consumer)
protected AlgorithmParameterSpec getContentEncryptionCipherSpec(JweDecryptionInput jweDecryptionInput)
protected String getContentEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput)
protected byte[] getContentEncryptionCipherAAD(JweDecryptionInput jweDecryptionInput)
protected byte[] getEncryptedContentWithAuthTag(JweDecryptionInput jweDecryptionInput)
protected byte[] getContentEncryptionCipherInitVector(JweDecryptionInput jweDecryptionInput)
protected byte[] getEncryptionAuthenticationTag(JweDecryptionInput jweDecryptionInput)
protected int getEncryptionAuthenticationTagLenBits(JweDecryptionInput jweDecryptionInput)
protected byte[] getActualCek(byte[] theCek, String algoJwt)
public KeyAlgorithm getKeyAlgorithm()
getKeyAlgorithm
in interface JweKeyProperties
public ContentAlgorithm getContentAlgorithm()
getContentAlgorithm
in interface JweKeyProperties
Apache CXF