public abstract class AbstractJweEncryption extends Object implements JweEncryptionProvider
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractJweEncryption.JweEncryptionInternal |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_AUTH_TAG_LENGTH |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJweEncryption(ContentEncryptionAlgorithm contentEncryptionAlgo,
KeyEncryptionAlgorithm keyEncryptionAlgo) |
protected static final int DEFAULT_AUTH_TAG_LENGTH
protected AbstractJweEncryption(ContentEncryptionAlgorithm contentEncryptionAlgo, KeyEncryptionAlgorithm keyEncryptionAlgo)
protected ContentEncryptionAlgorithm getContentEncryptionAlgorithm()
protected AlgorithmParameterSpec getAlgorithmParameterSpec(byte[] theIv)
protected byte[] getContentEncryptionKey(JweHeaders headers)
protected int getCekSize(String algoJwt)
protected byte[] getProvidedContentEncryptionKey(JweHeaders headers)
protected byte[] getEncryptedContentEncryptionKey(JweHeaders headers, byte[] theCek)
protected String getContentEncryptionAlgoJwt()
protected String getContentEncryptionAlgoJava()
protected byte[] getAAD(String protectedHeaders, byte[] aad)
public String encrypt(byte[] content, JweHeaders jweHeaders)
JweEncryptionProviderencrypt in interface JweEncryptionProviderprotected JweCompactProducer getJweCompactProducer(AbstractJweEncryption.JweEncryptionInternal state, byte[] cipher)
public String getKeyAlgorithm()
getKeyAlgorithm in interface JweKeyPropertiespublic String getContentAlgorithm()
getContentAlgorithm in interface JweKeyPropertiesprotected JoseHeadersReaderWriter getJwtHeadersWriter()
public JweEncryptionState createJweEncryptionState(JweEncryptionInput jweInput)
JweEncryptionProvidercreateJweEncryptionState in interface JweEncryptionProviderprotected AuthenticationTagProducer getAuthenticationTagProducer(AbstractJweEncryption.JweEncryptionInternal state)
protected SecretKey createCekSecretKey(AbstractJweEncryption.JweEncryptionInternal state)
protected byte[] getActualCek(byte[] theCek,
String algoJwt)
protected KeyEncryptionAlgorithm getKeyEncryptionAlgo()
Apache CXF