public class FileSystemSecretStoreHeaplet extends GenericHeaplet
PropertyResolverSecretStore
resolving properties from files
in a directory. The FlatFileResolver
resolves each property stored in its own file in some directory.
{
"type": "FileSystemSecretStore",
"config": {
"directory": expression [REQUIRED - path to the directory containing
the files (one file per password).]
"format": expression(enum) [OPTIONAL - PLAIN or BASE64, default is BASE64],
"suffix": expression [OPTIONAL - the suffix such as ".secret",
default: empty]
}
}
Example:
{
"type": "FileSystemSecretStore",
"config": {
"directory": "/path/to/openig/basedir/secrets"
"format": "PLAIN",
}
}
FlatFileResolver
Constructor and Description |
---|
FileSystemSecretStoreHeaplet() |
Modifier and Type | Method and Description |
---|---|
Object |
create()
Called to request the heaplet create an object.
|
create, destroy, endpointRegistry, evaluatedWithHeapProperties, expression, getConfig, getHeap, getSecretService, getType, meterRegistryHolder, start
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.