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(JweHeaders headers,
ContentEncryptionAlgorithm contentEncryptionAlgo,
KeyEncryptionAlgorithm keyEncryptionAlgo) |
protected |
AbstractJweEncryption(JweHeaders headers,
ContentEncryptionAlgorithm contentEncryptionAlgo,
KeyEncryptionAlgorithm keyEncryptionAlgo,
JoseHeadersWriter writer) |
protected static final int DEFAULT_AUTH_TAG_LENGTH
protected AbstractJweEncryption(JweHeaders headers, ContentEncryptionAlgorithm contentEncryptionAlgo, KeyEncryptionAlgorithm keyEncryptionAlgo)
protected AbstractJweEncryption(JweHeaders headers, ContentEncryptionAlgorithm contentEncryptionAlgo, KeyEncryptionAlgorithm keyEncryptionAlgo, JoseHeadersWriter writer)
protected AlgorithmParameterSpec getAlgorithmParameterSpec(byte[] theIv)
protected byte[] getContentEncryptionKey()
protected int getCekSize(String algoJwt)
protected byte[] getProvidedContentEncryptionKey()
protected byte[] getEncryptedContentEncryptionKey(byte[] theCek)
protected String getContentEncryptionAlgoJwt()
protected String getContentEncryptionAlgoJava()
protected byte[] getAAD(JweHeaders theHeaders)
public String encrypt(byte[] content, JweHeaders jweHeaders)
encrypt in interface JweEncryptionProviderprotected JweCompactProducer getJweCompactProducer(AbstractJweEncryption.JweEncryptionInternal state, byte[] cipher)
protected JoseHeadersWriter getJwtHeadersWriter()
protected JweHeaders getJweHeaders()
public String getKeyAlgorithm()
getKeyAlgorithm in interface JweKeyPropertiespublic String getContentAlgorithm()
getContentAlgorithm in interface JweKeyPropertiespublic JweEncryptionState createJweEncryptionState(JweHeaders jweHeaders)
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