Package org.keycloak.vault
Class DefaultVaultStringSecret
java.lang.Object
org.keycloak.vault.DefaultVaultStringSecret
- All Implemented Interfaces:
 AutoCloseable,VaultStringSecret
Default 
VaultCharSecret implementation based on String.- Author:
 - Stefan Guilhen
 
- 
Method Summary
 
- 
Method Details
- 
forString
 - 
get
Description copied from interface:VaultStringSecretReturns the secret represented as aString.- Specified by:
 getin interfaceVaultStringSecret- Returns:
 - If the secret was successfully resolved by vault, returns an 
Optionalcontaining the value returned by the vault as aString(a valid value can benull), or an emptyOptional 
 - 
close
public void close()Description copied from interface:VaultStringSecretDestroys the secret in memory by e.g. overwriting it with random garbage or release references in case of immutable secrets.- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceVaultStringSecret
 
 -