org.apache.cxf.rs.security.jose.jwe
Class AesCbcHmacJweEncryption
java.lang.Object
org.apache.cxf.rs.security.jose.jwe.AbstractJweEncryption
org.apache.cxf.rs.security.jose.jwe.AesCbcHmacJweEncryption
- All Implemented Interfaces:
- JweEncryptionProvider
public class AesCbcHmacJweEncryption
- extends AbstractJweEncryption
| Methods inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractJweEncryption |
createCekSecretKey, createJweEncryptionState, encrypt, getAAD, getAlgorithmParameterSpec, getContentEncryptionAlgoJava, getContentEncryptionAlgoJwt, getContentEncryptionKey, getJweHeaders, getJwtHeadersWriter, getKeyEncryptionAlgo, getProvidedContentEncryptionKey |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AesCbcHmacJweEncryption
public AesCbcHmacJweEncryption(String cekAlgoJwt,
KeyEncryptionAlgorithm keyEncryptionAlgorithm)
AesCbcHmacJweEncryption
public AesCbcHmacJweEncryption(JweHeaders headers,
KeyEncryptionAlgorithm keyEncryptionAlgorithm)
AesCbcHmacJweEncryption
public AesCbcHmacJweEncryption(JweHeaders headers,
byte[] cek,
byte[] iv,
KeyEncryptionAlgorithm keyEncryptionAlgorithm)
AesCbcHmacJweEncryption
public AesCbcHmacJweEncryption(JweHeaders headers,
byte[] cek,
byte[] iv,
KeyEncryptionAlgorithm keyEncryptionAlgorithm,
JoseHeadersWriter writer)
getActualCek
protected byte[] getActualCek(byte[] theCek,
String algoJwt)
- Overrides:
getActualCek in class AbstractJweEncryption
getCekSize
protected int getCekSize(String algoJwt)
- Overrides:
getCekSize in class AbstractJweEncryption
doGetActualCek
protected static byte[] doGetActualCek(byte[] theCek,
String algoJwt)
getFullCekKeySize
protected static int getFullCekKeySize(String algoJwt)
getJweCompactProducer
protected JweCompactProducer getJweCompactProducer(AbstractJweEncryption.JweEncryptionInternal state,
byte[] cipher)
- Overrides:
getJweCompactProducer in class AbstractJweEncryption
signAndGetTag
protected static byte[] signAndGetTag(AesCbcHmacJweEncryption.MacState macState)
getInitializedMacState
protected static AesCbcHmacJweEncryption.MacState getInitializedMacState(byte[] secretKey,
byte[] theIv,
JweHeaders theHeaders,
String headersJson)
getAuthenticationTagProducer
protected AuthenticationTagProducer getAuthenticationTagProducer(AbstractJweEncryption.JweEncryptionInternal state)
- Overrides:
getAuthenticationTagProducer in class AbstractJweEncryption
getEncryptedContentEncryptionKey
protected byte[] getEncryptedContentEncryptionKey(byte[] theCek)
- Overrides:
getEncryptedContentEncryptionKey in class AbstractJweEncryption
Apache CXF