Package org.apache.gravitino.client
Class CustomTokenProvider
java.lang.Object
org.apache.gravitino.client.CustomTokenProvider
- All Implemented Interfaces:
Closeable
,AutoCloseable
CustomTokenProvider will provide a custom access token for every request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface
CustomTokenProvider.Builder<SELF extends CustomTokenProvider.Builder<SELF,
T>, T extends CustomTokenProvider> Builder interface for configuring and creating instances of CustomTokenProvider.static class
CustomTokenProvider.CustomTokenProviderBuilder<SELF extends CustomTokenProvider.Builder<SELF,
T>, T extends CustomTokenProvider> Builder class for configuring and creating instances of CustomTokenProvider. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
schemeName
The name of authentication scheme.
-
-
Constructor Details
-
CustomTokenProvider
public CustomTokenProvider()
-
-
Method Details
-
hasTokenData
public boolean hasTokenData() -
getTokenData
public byte[] getTokenData() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getCustomTokenInfo
Gets the custom token information.- Returns:
- The custom token information.
-