| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | |
| private byte[] | |
| public void | deserializeCEK(JWEKeyStorage keyStorage)
Implements org. |
| public void | encodeJwe(JWE jwe)
Implements org. JWE#setEncryptedContentInfo(byte[], byte[], byte[]) after it's finished
|
| private byte[] | |
| protected abstract int | |
| protected abstract int | |
| protected abstract String | |
| public byte[] | serializeCEK(JWEKeyStorage keyStorage)
Implements org. |
| public void | verifyAndDecodeJwe(JWE jwe)
Implements org. |
| AesCbcHmacShaEncryptionProvider | back to summary |
|---|---|
| public AesCbcHmacShaEncryptionProvider() | |
| computeAuthenticationTag | back to summary |
|---|---|
| private byte[] computeAuthenticationTag(byte[] aadBytes, byte[] ivBytes, byte[] cipherBytes, Key hmacKeySpec) throws NoSuchAlgorithmException, InvalidKeyException | |
| decryptBytes | back to summary |
|---|---|
| private byte[] decryptBytes(byte[] encryptedBytes, byte[] ivBytes, Key aesKey) throws GeneralSecurityException | |
| deserializeCEK | back to summary |
|---|---|
| public void deserializeCEK(JWEKeyStorage keyStorage) Implements org. Doc from org. This method is supposed to deserialize keys. It requires that
| |
| encodeJwe | back to summary |
|---|---|
| public void encodeJwe(JWE jwe) throws IOException, GeneralSecurityException Implements org. Doc from org. This method usually has 3 outputs:
- generated initialization vector
- encrypted content
- authenticationTag for MAC validation
It is supposed to call
| |
| encryptBytes | back to summary |
|---|---|
| private byte[] encryptBytes(byte[] contentBytes, byte[] ivBytes, Key aesKey) throws GeneralSecurityException | |
| getAuthenticationTagLength | back to summary |
|---|---|
| protected abstract int getAuthenticationTagLength() | |
| getExpectedAesKeyLength | back to summary |
|---|---|
| protected abstract int getExpectedAesKeyLength() | |
| getHmacShaAlgorithm | back to summary |
|---|---|
| protected abstract String getHmacShaAlgorithm() | |
| serializeCEK | back to summary |
|---|---|
| public byte[] serializeCEK(JWEKeyStorage keyStorage) Implements org. Doc from org. This method requires that decoded CEK keys are present in the keyStorage.decodedCEK map before it's called
| |
| verifyAndDecodeJwe | back to summary |
|---|---|
| public void verifyAndDecodeJwe(JWE jwe) throws IOException, GeneralSecurityException Implements org. Doc from org. This method is supposed to verify checksums and decrypt content. Then it needs to call
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected int | |
| protected int | |
| public int | |
| protected String |
| Aes128CbcHmacSha256Provider | back to summary |
|---|---|
| public Aes128CbcHmacSha256Provider() | |
| getAuthenticationTagLength | back to summary |
|---|---|
| protected int getAuthenticationTagLength() Implements abstract org.
| |
| getExpectedAesKeyLength | back to summary |
|---|---|
| protected int getExpectedAesKeyLength() Implements abstract org.
| |
| getExpectedCEKLength | back to summary |
|---|---|
| public int getExpectedCEKLength() Implements org.
| |
| getHmacShaAlgorithm | back to summary |
|---|---|
| protected String getHmacShaAlgorithm() Implements abstract org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected int | |
| protected int | |
| public int | |
| protected String |
| Aes192CbcHmacSha384Provider | back to summary |
|---|---|
| public Aes192CbcHmacSha384Provider() | |
| getAuthenticationTagLength | back to summary |
|---|---|
| protected int getAuthenticationTagLength() Implements abstract org.
| |
| getExpectedAesKeyLength | back to summary |
|---|---|
| protected int getExpectedAesKeyLength() Implements abstract org.
| |
| getExpectedCEKLength | back to summary |
|---|---|
| public int getExpectedCEKLength() Implements org.
| |
| getHmacShaAlgorithm | back to summary |
|---|---|
| protected String getHmacShaAlgorithm() Implements abstract org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected int | |
| protected int | |
| public int | |
| protected String |
| Aes256CbcHmacSha512Provider | back to summary |
|---|---|
| public Aes256CbcHmacSha512Provider() | |
| getAuthenticationTagLength | back to summary |
|---|---|
| protected int getAuthenticationTagLength() Implements abstract org.
| |
| getExpectedAesKeyLength | back to summary |
|---|---|
| protected int getExpectedAesKeyLength() Implements abstract org.
| |
| getExpectedCEKLength | back to summary |
|---|---|
| public int getExpectedCEKLength() Implements org.
| |
| getHmacShaAlgorithm | back to summary |
|---|---|
| protected String getHmacShaAlgorithm() Implements abstract org.
| |