public class Cryptor extends Object
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] dek,
byte[] ciphertext,
byte[] associatedData) |
byte[] |
encrypt(byte[] dek,
byte[] plaintext,
byte[] associatedData) |
byte[] |
generateKey() |
DekFormat |
getDekFormat() |
public Cryptor(DekFormat dekFormat) throws GeneralSecurityException
GeneralSecurityExceptionpublic DekFormat getDekFormat()
public byte[] generateKey()
throws GeneralSecurityException
GeneralSecurityExceptionpublic byte[] encrypt(byte[] dek,
byte[] plaintext,
byte[] associatedData)
throws GeneralSecurityException
GeneralSecurityExceptionpublic byte[] decrypt(byte[] dek,
byte[] ciphertext,
byte[] associatedData)
throws GeneralSecurityException
GeneralSecurityExceptionCopyright © 2026 Confluent, Inc.. All rights reserved.