public class FileBasedKeyProvider extends StaticKeyProvider
| Modifier and Type | Field and Description |
|---|---|
private String |
filepath |
private static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
FileBasedKeyProvider(String location,
SecretKey rootKey) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addKey(String keyId,
SecretKey key)
Adds the key to the provider and associates it with the given ID.
|
getAvailableKeyIds, getKey, keyExistsprivate static final org.slf4j.Logger logger
private final String filepath
public FileBasedKeyProvider(String location, SecretKey rootKey) throws KeyManagementException
KeyManagementExceptionpublic boolean addKey(String keyId, SecretKey key) throws OperationNotSupportedException, KeyManagementException
addKey in interface KeyProvideraddKey in class StaticKeyProviderkeyId - the key identifierkey - the keyOperationNotSupportedException - if this implementation doesn't support adding keysKeyManagementException - if the key is invalid, the ID conflicts, etc.Copyright © 2021 Apache NiFi Project. All rights reserved.