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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
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
-
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:
close
in interfaceAutoCloseable
-
-