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 masterKey) |
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, keyExists
private static final org.slf4j.Logger logger
private String filepath
public FileBasedKeyProvider(String location, SecretKey masterKey) throws KeyManagementException
KeyManagementException
public boolean addKey(String keyId, SecretKey key) throws OperationNotSupportedException, KeyManagementException
addKey
in interface KeyProvider
addKey
in class StaticKeyProvider
keyId
- the key identifierkey
- the keyOperationNotSupportedException
- if this implementation doesn't support adding keysKeyManagementException
- if the key is invalid, the ID conflicts, etc.Copyright © 2018 Apache NiFi Project. All rights reserved.