RSAEncryptionHandler
and AESCBCHMACSHA2ContentEncryptionHandler
instead.@Deprecated public class RSA15AES256CBCHS512EncryptionHandler extends AbstractEncryptionHandler
Constructor and Description |
---|
RSA15AES256CBCHS512EncryptionHandler(SigningManager signingManager)
Deprecated.
Constructs a new RSA15AES256CBCHS512EncryptionHandler.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decryptCiphertext(Key contentEncryptionKey,
byte[] initialisationVector,
byte[] ciphertext,
byte[] authenticationTag,
byte[] additionalAuthenticatedData)
Deprecated.
Decrypts the ciphertext with the Content Encryption Key, using the initialisation vector and additional
authenticated data, following the steps defined by the EncryptionHandler JweAlgorithm.
|
Key |
decryptContentEncryptionKey(Key key,
byte[] encryptedContentEncryptionKey)
Deprecated.
Decrypts the JWE Encrypted Key to produce the Content Encryption Key (CEK).
|
Key |
decryptContentEncryptionKey(Key key,
byte[] encryptedContentEncryptionKey,
JweHeader header)
Deprecated.
Decrypts the JWE Encrypted Key to produce the Content Encryption Key (CEK).
|
JweEncryption |
encryptPlaintext(Key contentEncryptionKey,
byte[] initialisationVector,
byte[] plaintext,
byte[] additionalAuthenticatedData)
Deprecated.
Encrypts the plaintext with the Content Encryption Key, using the initialisation vector and additional
authenticated data, following the steps defined by the EncryptionHandler JweAlgorithm.
|
byte[] |
generateInitialisationVector()
Deprecated.
Generates a random JWE Initialisation Vector of the correct size for the encryption algorithm.
|
byte[] |
generateJWEEncryptedKey(Key key,
Key contentEncryptionKey)
Deprecated.
Generates the JWE Encrypted Key by encrypting the Content Encryption Key (CEK) using the JweAlgorithm
RSAES_PCKCS1_V1_5.
|
byte[] |
generateJWEEncryptedKey(Key key,
Key contentEncryptionKey,
JweHeader header)
Deprecated.
Generates the JWE Encrypted Key by encrypting the Content Encryption Key (CEK) using the JweAlgorithm
RSAES_PCKCS1_V1_5.
|
Key |
getContentEncryptionKey()
Deprecated.
Creates a Content Encryption Key (CEK) by generating a random key value with a length equal to the
EncryptionMethod A128CBC_HS256 key size.
|
decrypt, decrypt, encrypt, encrypt
public RSA15AES256CBCHS512EncryptionHandler(SigningManager signingManager)
signingManager
- A SigningManager
instance.public Key getContentEncryptionKey()
See point 2 in Section 5.1 of the JWE Specification.
public byte[] generateJWEEncryptedKey(Key key, Key contentEncryptionKey)
See point 4 in Section 5.1 of the JWE Specification.
key
- The key to use to encrypt the Content Encryption Key, if the EncryptionHandler JweAlgorithm requires.contentEncryptionKey
- The Content Encryption Key (CEK).public byte[] generateJWEEncryptedKey(Key key, Key contentEncryptionKey, JweHeader header)
See point 4 in Section 5.1 of the JWE Specification.
key
- The key to use to encrypt the Content Encryption Key, if the EncryptionHandler JweAlgorithm requires.contentEncryptionKey
- The Content Encryption Key (CEK).header
- The JWE header.public byte[] generateInitialisationVector()
See points 9 in Section 5.1 of the JWE Specification.
public JweEncryption encryptPlaintext(Key contentEncryptionKey, byte[] initialisationVector, byte[] plaintext, byte[] additionalAuthenticatedData)
See points 15, 16 in Section 5.1 of the JWE Specification.
contentEncryptionKey
- The Content Encryption Key.initialisationVector
- The Initialisation Vector.plaintext
- The plaintext to encrypt.additionalAuthenticatedData
- An array of bytes representing the additional authenticated data.public Key decryptContentEncryptionKey(Key key, byte[] encryptedContentEncryptionKey)
See points 10 in Section 5.2 of the JWE Specification.
key
- The private key pair to the public key that encrypted the JWT.encryptedContentEncryptionKey
- The encrypted Content Encryption Key.public Key decryptContentEncryptionKey(Key key, byte[] encryptedContentEncryptionKey, JweHeader header)
See points 10 in Section 5.2 of the JWE Specification.
key
- The private key pair to the public key that encrypted the JWT.encryptedContentEncryptionKey
- The encrypted Content Encryption Key.header
- The JWE header.public byte[] decryptCiphertext(Key contentEncryptionKey, byte[] initialisationVector, byte[] ciphertext, byte[] authenticationTag, byte[] additionalAuthenticatedData)
See points 14, 15 in Section 5.2 of the JWE Specification.
contentEncryptionKey
- The Content Encryption Key.initialisationVector
- The Initialisation Vector.ciphertext
- The ciphertext to decrypt.authenticationTag
- The authentication tag.additionalAuthenticatedData
- An array of bytes representing the additional authenticated data.Copyright © 2010-2018, ForgeRock All Rights Reserved.