| Modifier and Type | Method and Description | 
|---|---|
VaultRawSecret | 
obtainSecret(String vaultSecretId)
Retrieves a secret from vault. 
 | 
VaultRawSecret obtainSecret(String vaultSecretId)
VaultRawSecret.get().
 This method is intended to be used within a try-with-resources block so that
 the secret is destroyed immediately after use.
 Note that it is responsibility of the implementor to provide a way
 to destroy the secret in the returned VaultRawSecret.close() method.vaultSecretId - Identifier of the secret. It corresponds to the value
        entered by user in the respective configuration, which in turn
        is obtained from the vault when storing the secret.null value with the raw secret.
         Within the returned value, the secret or null is stored in the
         VaultRawSecret.get() return value if the secret was successfully
         resolved, or an empty Optional if the secret has not been found in the vault.Copyright © 2021 JBoss by Red Hat. All rights reserved.