Class VaultToken
java.lang.Object
org.springframework.vault.support.VaultToken
- Direct Known Subclasses:
LoginToken
Value object for a Vault token.
- Author:
- Mark Paluch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getToken()
int
hashCode()
static VaultToken
of
(char[] token) Create a newVaultToken
.static VaultToken
Create a newVaultToken
.char[]
toString()
-
Constructor Details
-
VaultToken
protected VaultToken(char[] token)
-
-
Method Details
-
of
Create a newVaultToken
.- Parameters:
token
- must not be empty or null.- Returns:
- the created
VaultToken
-
of
Create a newVaultToken
.- Parameters:
token
- must not be empty or null.- Returns:
- the created
VaultToken
- Since:
- 1.1
-
getToken
- Returns:
- the token value.
-
toCharArray
public char[] toCharArray()- Returns:
- the token value.
- Since:
- 1.1
-
equals
-
hashCode
public int hashCode() -
toString
-