- All Superinterfaces:
- All Known Implementing Classes:
public interface VaultStringSecret extends AutoCloseable
Stringbased 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.
- Stefan Guilhen
closevoid close()Destroys the secret in memory by e.g. overwriting it with random garbage or release references in case of immutable secrets.