public class LoginToken extends VaultToken
Modifier and Type | Method and Description |
---|---|
long |
getLeaseDuration() |
boolean |
isRenewable() |
static LoginToken |
of(char[] token)
Create a new
LoginToken . |
static LoginToken |
of(char[] token,
long leaseDurationSeconds)
Create a new
LoginToken with a leaseDurationSeconds . |
static LoginToken |
of(String token)
Create a new
LoginToken . |
static LoginToken |
of(String token,
long leaseDurationSeconds)
Create a new
LoginToken with a leaseDurationSeconds . |
static LoginToken |
renewable(char[] token,
long leaseDurationSeconds)
Create a new renewable
LoginToken with a leaseDurationSeconds . |
static LoginToken |
renewable(String token,
long leaseDurationSeconds)
Create a new renewable
LoginToken with a leaseDurationSeconds . |
getToken, toCharArray
public static LoginToken of(String token)
LoginToken
.token
- must not be null.VaultToken
public static LoginToken of(char[] token)
LoginToken
.token
- must not be null.VaultToken
public static LoginToken of(String token, long leaseDurationSeconds)
LoginToken
with a leaseDurationSeconds
.token
- must not be null.leaseDurationSeconds
- the lease duration in seconds.VaultToken
public static LoginToken of(char[] token, long leaseDurationSeconds)
LoginToken
with a leaseDurationSeconds
.token
- must not be null.leaseDurationSeconds
- the lease duration in seconds.VaultToken
public static LoginToken renewable(String token, long leaseDurationSeconds)
LoginToken
with a leaseDurationSeconds
.token
- must not be null.leaseDurationSeconds
- the lease duration in seconds.VaultToken
public static LoginToken renewable(char[] token, long leaseDurationSeconds)
LoginToken
with a leaseDurationSeconds
.token
- must not be null.leaseDurationSeconds
- the lease duration in seconds.VaultToken
public long getLeaseDuration()
public boolean isRenewable()
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.