public class SystemAndEnvSecretStoreHeaplet extends GenericHeaplet
PropertyResolverSecretStore
resolving properties in system then
in environment variables.
{
"type": "SystemAndEnvSecretStore",
"config": {
"format": expression(enum) [OPTIONAL - PLAIN or BASE64, default is base64]
}
}
Example:
{
"type": "SystemAndEnvSecretStore",
"config": {
"format": "BASE64"
}
}
Note that the EnvironmentVariableResolver
transforms the keys from dot
notations according specific rules.EnvironmentVariableResolver
Constructor and Description |
---|
SystemAndEnvSecretStoreHeaplet() |
Modifier and Type | Method and Description |
---|---|
Object |
create()
Called to request the heaplet create an object.
|
static SecretStore<Secret> |
newBase64SysEnvSecretStore()
Returns a new instance of a SecretStore that reads base64-encoded secrets (passwords or symmetric keys)
from system properties and environment variables.
|
create, destroy, endpointRegistry, evaluatedWithHeapProperties, expression, getConfig, getHeap, getSecretService, getType, meterRegistryHolder, start
public static SecretStore<Secret> newBase64SysEnvSecretStore()
public Object create() throws HeapException
GenericHeaplet
Heaplet.create(Name, JsonValue, Heap)
after initializing
the protected field members. Implementations should parse configuration
but not acquire resources, start threads, or log any initialization
messages. These tasks should be performed by the GenericHeaplet.start()
method.create
in class GenericHeaplet
HeapException
- if an exception occurred during creation of the heap object
or any of its dependencies.Copyright 2011-2017 ForgeRock AS.