ContentEncryptionHandler instead.@Deprecated public abstract class AbstractEncryptionHandler extends Object implements EncryptionHandler
| Constructor and Description |
|---|
AbstractEncryptionHandler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(String algorithm,
Key privateKey,
byte[] data)
Deprecated.
Decrypts the given ciphertext using the private key and with the same encryption algorithm that was used in the
encryption.
|
protected byte[] |
decrypt(String algorithm,
Key key,
byte[] initialisationVector,
byte[] data)
Deprecated.
Decrypts the given ciphertext using the private key and initialisation vector with the same encryption algorithm
that was used in the encryption.
|
protected byte[] |
encrypt(String algorithm,
Key key,
byte[] data)
Deprecated.
Encrypts the given plaintext using the specified key with the specified encryption algorithm.
|
protected byte[] |
encrypt(String algorithm,
Key key,
byte[] initialisationVector,
byte[] data)
Deprecated.
Encrypts the given plaintext using the specified key and initialisation vector with the specified encryption
algorithm.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecryptCiphertext, decryptContentEncryptionKey, encryptPlaintext, generateInitialisationVector, generateJWEEncryptedKey, getContentEncryptionKeyprotected byte[] encrypt(String algorithm, Key key, byte[] data)
algorithm - The Java Cryptographic encryption algorithm.key - The encryption key.data - The data to encrypt.protected byte[] encrypt(String algorithm, Key key, byte[] initialisationVector, byte[] data)
algorithm - The Java Cryptographic encryption algorithm.key - The encryption key.initialisationVector - The initialisation vector.data - The data to encrypt.public byte[] decrypt(String algorithm, Key privateKey, byte[] data)
algorithm - The Java Cryptographic encryption algorithm.privateKey - The private key pair to the public key used in the encryption.data - The ciphertext to decrypt.protected byte[] decrypt(String algorithm, Key key, byte[] initialisationVector, byte[] data)
algorithm - The Java Cryptographic encryption algorithm.key - The private key pair to the public key used in the encryption.initialisationVector - The same initialisation vector that was used in the encryption.data - The ciphertext to decrypt.Copyright © 2025 Open Identity Platform Community. All rights reserved.