public interface VaultWrappingOperations
| Modifier and Type | Method and Description |
|---|---|
WrappedMetadata |
lookup(VaultToken token)
Looks up
metadata for the given token containing a wrapped
response. |
VaultResponse |
read(VaultToken token)
Read a wrapped secret.
|
<T> VaultResponseSupport<T> |
read(VaultToken token,
Class<T> responseType)
Read a wrapped secret of type
responseType. |
WrappedMetadata |
rewrap(VaultToken token)
Rewraps a response-wrapped token.
|
WrappedMetadata |
wrap(Object body,
Duration ttl)
Wraps the given user-supplied data inside a response-wrapped token.
|
@Nullable WrappedMetadata lookup(VaultToken token)
metadata for the given token containing a wrapped
response.token - must not be null.WrappedMetadata the token or null if the
token was invalid or expired.@Nullable VaultResponse read(VaultToken token)
token - must not be null.@Nullable <T> VaultResponseSupport<T> read(VaultToken token, Class<T> responseType)
responseType.token - must not be null.responseType - must not be null.WrappedMetadata rewrap(VaultToken token)
VaultException.token - must not be null.WrappedMetadata for this wrapping operation.WrappedMetadata wrap(Object body, Duration ttl)
body - must not be null.ttl - must not be null.WrappedMetadata for this wrapping operation.Copyright © 2016–2019 Pivotal Software, Inc.. All rights reserved.