public interface CryptoKeyProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_KEY
A string literal that indicates the contents of a key are empty.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKey() |
default boolean |
isEmpty() |
String |
toString()
A string representation of this CryptoKeyProvider instance.
|
static final String EMPTY_KEY
String getKey() throws MissingCryptoKeyException
EMPTY_KEY if the key is empty.MissingCryptoKeyException - if the key cannot be provided or determined for any reason.
If the key is known to be empty, EMPTY_KEY will be returned and a
CryptoKeyMissingException will not be throwndefault boolean isEmpty()
String toString()
Note: Implementations of this interface should take care not to leak sensitive key material in any strings they emmit, including in the toString implementation.
Copyright © 2023 Apache NiFi Project. All rights reserved.