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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetToken()inthashCode()static VaultTokenof(char[] token) Create a newVaultToken.static VaultTokenCreate 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
-