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 |
protected static Logger |
LOG |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJweEncryption(ContentEncryptionProvider contentEncryptionAlgo,
KeyEncryptionProvider keyEncryptionAlgo) |
protected static final Logger LOG
protected static final int DEFAULT_AUTH_TAG_LENGTH
protected AbstractJweEncryption(ContentEncryptionProvider contentEncryptionAlgo, KeyEncryptionProvider keyEncryptionAlgo)
protected ContentEncryptionProvider getContentEncryptionAlgorithm()
protected AlgorithmParameterSpec getAlgorithmParameterSpec(byte[] theIv)
protected byte[] getContentEncryptionKey(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 JweEncryptionProviderpublic JweEncryptionOutput getEncryptionOutput(JweEncryptionInput jweInput)
JweEncryptionProvidergetEncryptionOutput in interface JweEncryptionProviderprotected byte[] encryptInternal(AbstractJweEncryption.JweEncryptionInternal state, byte[] content)
protected byte[] getActualCipher(byte[] cipher)
protected byte[] getAuthenticationTag(AbstractJweEncryption.JweEncryptionInternal state, byte[] cipher)
public KeyAlgorithm getKeyAlgorithm()
getKeyAlgorithm in interface JweKeyPropertiespublic ContentAlgorithm getContentAlgorithm()
getContentAlgorithm in interface JweKeyPropertiesprotected JsonMapObjectReaderWriter getJwtHeadersWriter()
protected AuthenticationTagProducer getAuthenticationTagProducer(AbstractJweEncryption.JweEncryptionInternal state)
protected SecretKey createCekSecretKey(AbstractJweEncryption.JweEncryptionInternal state)
protected byte[] getActualCek(byte[] theCek,
String algoJwt)
protected KeyEncryptionProvider getKeyEncryptionAlgo()
Apache CXF