public class DefaultVaultRawSecret extends Object implements VaultRawSecret
byte[].| Modifier and Type | Method and Description |
|---|---|
void |
close()
Destroys the secret in memory by e.g.
|
static VaultRawSecret |
forBuffer(Optional<ByteBuffer> buffer) |
Optional<ByteBuffer> |
get()
Returns the raw secret bytes.
|
Optional<byte[]> |
getAsArray()
Returns the raw secret bytes in
byte[] form. |
public static VaultRawSecret forBuffer(Optional<ByteBuffer> buffer)
public Optional<ByteBuffer> get()
VaultRawSecretget in interface VaultRawSecretOptional containing the value returned by the vault
(a valid value can be null), or an empty Optionalpublic Optional<byte[]> getAsArray()
VaultRawSecretbyte[] form.getAsArray in interface VaultRawSecretOptional containing the value returned by the vault
(a valid value can be null), or an empty Optionalpublic void close()
VaultRawSecretclose in interface AutoCloseableclose in interface VaultRawSecretCopyright © 2021 JBoss by Red Hat. All rights reserved.