public interface VaultStringSecret extends AutoCloseable
String
based representation of the secret obtained from the vault that supports automated cleanup of memory.
In this case, due to the immutable nature of strings, the cleanup should consist in releasing any references to the
secret string so it can be disposed by the GC as soon as possible.Modifier and Type | Method and Description |
---|---|
void |
close()
Destroys the secret in memory by e.g.
|
Optional<String> |
get()
Returns the secret represented as a
String . |
void close()
close
in interface AutoCloseable
Copyright © 2021 JBoss by Red Hat. All rights reserved.