Class FileSystemSecretStore
- java.lang.Object
-
- org.forgerock.secrets.propertyresolver.PropertyResolverSecretStore
-
- org.forgerock.secrets.propertyresolver.FileSystemSecretStore
-
- All Implemented Interfaces:
Closeable,AutoCloseable,SecretStore<Secret>
public final class FileSystemSecretStore extends PropertyResolverSecretStore implements Closeable
APropertyResolverSecretStorethat uses aFlatFileResolverto retrieve properties from.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileSystemSecretStore.FileSystemSecretStoreBuilderA builder for more fluently creating a FileSystemSecretStore.
-
Field Summary
-
Fields inherited from interface org.forgerock.secrets.SecretStore
CLOCK, LEASE_EXPIRY_DURATION
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the underlying FlatFileResolver.static FileSystemSecretStore.FileSystemSecretStoreBuilderfileSystemSecretStoreBuilder(Path directory)Creates a new FileSystemSecretStore builder.-
Methods inherited from class org.forgerock.secrets.propertyresolver.PropertyResolverSecretStore
expireSecretsAfter, getActive, getNamed, getStoredType, getValid, refresh, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.forgerock.secrets.SecretStore
retire, revoke, rotate
-
-
-
-
Method Detail
-
fileSystemSecretStoreBuilder
public static FileSystemSecretStore.FileSystemSecretStoreBuilder fileSystemSecretStoreBuilder(Path directory)
Creates a new FileSystemSecretStore builder.- Parameters:
directory- the directory to retrieve file-based properties from- Returns:
- a new builder
-
close
public void close()
Closes the underlying FlatFileResolver.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-