Package org.keycloak.vault
Interface VaultRawSecret
- 
- All Superinterfaces:
- AutoCloseable
 - All Known Implementing Classes:
- DefaultVaultRawSecret
 
 public interface VaultRawSecret extends AutoCloseable Raw representation of the secret obtained from vault that supports automated cleanup of memory.- Author:
- hmlnarik
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Destroys the secret in memory by e.g.Optional<ByteBuffer>get()Returns the raw secret bytes.Optional<byte[]>getAsArray()Returns the raw secret bytes inbyte[]form.
 
- 
- 
- 
Method Detail- 
getOptional<ByteBuffer> get() Returns the raw secret bytes.
 - 
getAsArrayOptional<byte[]> getAsArray() Returns the raw secret bytes inbyte[]form.
 - 
closevoid close() Destroys the secret in memory by e.g. overwriting it with random garbage.- Specified by:
- closein interface- AutoCloseable
 
 
- 
 
-