public class VaultTokenTemplate extends Object implements VaultTokenOperations
VaultTokenOperations
.Constructor and Description |
---|
VaultTokenTemplate(VaultOperations vaultOperations)
Create a new
VaultTokenTemplate with the given VaultOperations . |
Modifier and Type | Method and Description |
---|---|
VaultTokenResponse |
create()
Create a new token.
|
VaultTokenResponse |
create(VaultTokenRequest request)
Create a new token for the given
VaultTokenRequest . |
VaultTokenResponse |
createOrphan()
Create a new orphan token.
|
VaultTokenResponse |
createOrphan(VaultTokenRequest request)
Create a new orphan token for the given
VaultTokenRequest . |
VaultTokenResponse |
renew(VaultToken vaultToken)
Renew a
VaultToken . |
void |
revoke(VaultToken vaultToken)
Revoke a
VaultToken . |
void |
revokeOrphan(VaultToken vaultToken)
Revoke a
VaultToken but not its child tokens. |
public VaultTokenTemplate(VaultOperations vaultOperations)
VaultTokenTemplate
with the given VaultOperations
.vaultOperations
- must not be null.public VaultTokenResponse create()
VaultTokenOperations
create
in interface VaultTokenOperations
VaultTokenResponse
public VaultTokenResponse create(VaultTokenRequest request)
VaultTokenOperations
VaultTokenRequest
.create
in interface VaultTokenOperations
request
- must not be null.VaultTokenResponse
public VaultTokenResponse createOrphan()
VaultTokenOperations
createOrphan
in interface VaultTokenOperations
VaultTokenResponse
public VaultTokenResponse createOrphan(VaultTokenRequest request)
VaultTokenOperations
VaultTokenRequest
.createOrphan
in interface VaultTokenOperations
request
- must not be null.VaultTokenResponse
public VaultTokenResponse renew(VaultToken vaultToken)
VaultTokenOperations
VaultToken
.renew
in interface VaultTokenOperations
vaultToken
- must not be null.VaultTokenResponse
public void revoke(VaultToken vaultToken)
VaultTokenOperations
VaultToken
.revoke
in interface VaultTokenOperations
vaultToken
- must not be null.public void revokeOrphan(VaultToken vaultToken)
VaultTokenOperations
VaultToken
but not its child tokens.revokeOrphan
in interface VaultTokenOperations
vaultToken
- must not be null.Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.