public abstract class RepositoryEncryptionConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
encryptionKeyId |
(package private) Map<String,String> |
encryptionKeys |
(package private) String |
keyProviderImplementation |
(package private) String |
keyProviderLocation |
(package private) String |
repositoryImplementation |
(package private) RepositoryType |
repositoryType |
| Constructor and Description |
|---|
RepositoryEncryptionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static RepositoryEncryptionConfiguration |
fromNiFiProperties(NiFiProperties niFiProperties,
RepositoryType repositoryType) |
String |
getEncryptionKeyId()
Returns the "active" encryption key id.
|
Map<String,String> |
getEncryptionKeys()
Returns a map of all available encryption keys indexed by the key id if using
StaticKeyProvider. |
String |
getKeyProviderImplementation()
Returns the class name of the
KeyProvider implementation used. |
String |
getKeyProviderLocation()
Returns the location of the key provider.
|
String |
getRepositoryImplementation()
Returns the class name for the repository implementation.
|
RepositoryType |
getRepositoryType()
Returns the
RepositoryType enum identifying this repository. |
String keyProviderImplementation
String keyProviderLocation
String encryptionKeyId
String repositoryImplementation
RepositoryType repositoryType
public String getKeyProviderImplementation()
KeyProvider implementation used.public String getKeyProviderLocation()
StaticKeyProvider this will be null; for all
others, it will be the location (file path/URL/etc.) to access the key definitions.public String getEncryptionKeyId()
public Map<String,String> getEncryptionKeys()
StaticKeyProvider. For
FileBasedKeyProvider, this method will return an
empty map because the keys must be loaded using the master key to decrypt them
via CryptoUtils.readKeys(String, SecretKey).NiFiProperties.getContentRepositoryEncryptionKeys()public String getRepositoryImplementation()
public RepositoryType getRepositoryType()
RepositoryType enum identifying this repository. Useful for
programmatically determining the kind of repository being configured.public static RepositoryEncryptionConfiguration fromNiFiProperties(NiFiProperties niFiProperties, RepositoryType repositoryType)
Copyright © 2019 Apache NiFi Project. All rights reserved.