| Modifier and Type | Method and Description |
|---|---|
static RepositoryObjectEncryptionMetadata |
RepositoryEncryptorUtils.extractEncryptionMetadata(byte[] encryptedRecord) |
static RepositoryObjectEncryptionMetadata |
RepositoryEncryptorUtils.extractEncryptionMetadata(InputStream encryptedRecord) |
static Cipher |
RepositoryEncryptorUtils.initCipher(AESKeyedCipherProvider aesKeyedCipherProvider,
EncryptionMethod method,
int mode,
SecretKey key,
byte[] ivBytes) |
static RepositoryObjectEncryptionMetadata |
AbstractAESEncryptor.prepareObjectForDecryption(Object ciphertextSource,
String identifier,
String descriptor,
List<String> supportedVersions)
Utility method which extracts the
RepositoryObjectEncryptionMetadata object from the byte[] or
InputStream provided and verifies common validation across both streaming and block decryption. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
RepositoryObjectBlockEncryptor.decrypt(byte[] encryptedRecord,
String recordId)
Decrypts the provided byte[] (an encrypted record with accompanying metadata).
|
byte[] |
RepositoryObjectBlockEncryptor.encrypt(byte[] plainRecord,
String recordId,
String keyId)
Encrypts the serialized byte[].
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
RepositoryObjectAESGCMEncryptor.decrypt(byte[] encryptedRecord,
String recordId)
Decrypts the provided byte[] (an encrypted record with accompanying metadata).
|
byte[] |
RepositoryObjectAESGCMEncryptor.encrypt(byte[] plainRecord,
String recordId,
String keyId)
Encrypts the serialized byte[].
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
RepositoryObjectStreamEncryptor.decrypt(InputStream encryptedRecord,
String recordId)
Decrypts the provided byte[] (an encrypted record with accompanying metadata).
|
OutputStream |
RepositoryObjectStreamEncryptor.encrypt(OutputStream plainRecord,
String recordId,
String keyId)
Encrypts the serialized byte[].
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
RepositoryObjectAESCTREncryptor.decrypt(InputStream encryptedInputStream,
String streamId)
Returns an
InputStream which decrypts the content of the provided InputStream. |
OutputStream |
RepositoryObjectAESCTREncryptor.encrypt(OutputStream plainStream,
String streamId,
String keyId)
Returns an
OutputStream which encrypts the content of the provided OutputStream. |
Copyright © 2020 Apache NiFi Project. All rights reserved.