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()
VaultTokenOperationscreate in interface VaultTokenOperationsVaultTokenResponsepublic VaultTokenResponse create(VaultTokenRequest request)
VaultTokenOperationsVaultTokenRequest.create in interface VaultTokenOperationsrequest - must not be null.VaultTokenResponsepublic VaultTokenResponse createOrphan()
VaultTokenOperationscreateOrphan in interface VaultTokenOperationsVaultTokenResponsepublic VaultTokenResponse createOrphan(VaultTokenRequest request)
VaultTokenOperationsVaultTokenRequest.createOrphan in interface VaultTokenOperationsrequest - must not be null.VaultTokenResponsepublic VaultTokenResponse renew(VaultToken vaultToken)
VaultTokenOperationsVaultToken.renew in interface VaultTokenOperationsvaultToken - must not be null.VaultTokenResponsepublic void revoke(VaultToken vaultToken)
VaultTokenOperationsVaultToken.revoke in interface VaultTokenOperationsvaultToken - must not be null.public void revokeOrphan(VaultToken vaultToken)
VaultTokenOperationsVaultToken but not its child tokens.revokeOrphan in interface VaultTokenOperationsvaultToken - must not be null.Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.