Package com.datastax.astra.client.auth
Class StaticTokenProvider
java.lang.Object
com.datastax.astra.client.auth.StaticTokenProvider
- All Implemented Interfaces:
TokenProvider
,Supplier<String>
Static token, never expires..
- Author:
- Cedrick LUNVEN (@clunven)
-
Constructor Details
-
StaticTokenProvider
Constructor with all parameters.- Parameters:
token
- static token to be used
-
-
Method Details
-
getToken
Building the token.- Specified by:
getToken
in interfaceTokenProvider
- Returns:
- current token
-