Package org.keycloak.vault
Interface VaultRawSecret
- All Superinterfaces:
 AutoCloseable
- All Known Implementing Classes:
 DefaultVaultRawSecret
Raw representation of the secret obtained from vault that supports automated cleanup of memory.
- Author:
 - hmlnarik
 
- 
Method Details
- 
get
Optional<ByteBuffer> get()Returns the raw secret bytes. - 
getAsArray
Optional<byte[]> getAsArray()Returns the raw secret bytes inbyte[]form. - 
close
void close()Destroys the secret in memory by e.g. overwriting it with random garbage.- Specified by:
 closein interfaceAutoCloseable
 
 -