public interface VaultCharSecret extends AutoCloseable
CharBuffer based representation of the secret obtained from the vault that supports automated cleanup of memory.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Destroys the secret in memory by e.g.
|
Optional<CharBuffer> |
get()
Returns the secret enclosed in a
CharBuffer. |
Optional<char[]> |
getAsArray()
Returns the secret in its
char[] form. |
Optional<CharBuffer> get()
CharBuffer.Optional containing the value returned
by the vault as a CharBuffer (a valid value can be null), or an empty OptionalOptional<char[]> getAsArray()
char[] form.void close()
close in interface AutoCloseableCopyright © 2021 JBoss by Red Hat. All rights reserved.