Package org.apache.gravitino.client
Class CustomTokenProvider.CustomTokenProviderBuilder<SELF extends CustomTokenProvider.Builder<SELF,T>,T extends CustomTokenProvider>
java.lang.Object
org.apache.gravitino.client.CustomTokenProvider.CustomTokenProviderBuilder<SELF,T>
- All Implemented Interfaces:
CustomTokenProvider.Builder<SELF,
T>
- Enclosing class:
- CustomTokenProvider
public abstract static class CustomTokenProvider.CustomTokenProviderBuilder<SELF extends CustomTokenProvider.Builder<SELF,T>,T extends CustomTokenProvider>
extends Object
implements CustomTokenProvider.Builder<SELF,T>
Builder class for configuring and creating instances of CustomTokenProvider.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the instance of the CustomTokenProvider.protected abstract T
Builds the instance of the CustomTokenProvider.withSchemeName
(String schemeName) Sets the scheme name for the CustomTokenProvider.
-
Field Details
-
schemeName
the name of authentication scheme
-
-
Constructor Details
-
CustomTokenProviderBuilder
public CustomTokenProviderBuilder()
-
-
Method Details
-
withSchemeName
Sets the scheme name for the CustomTokenProvider.Scheme name is the name of the authentication scheme. For example, "Bearer" or "Basic".
- Specified by:
withSchemeName
in interfaceCustomTokenProvider.Builder<SELF extends CustomTokenProvider.Builder<SELF,
T>, T extends CustomTokenProvider> - Parameters:
schemeName
- The scheme name for the CustomTokenProvider.- Returns:
- This Builder instance for method chaining.
-
build
Builds the instance of the CustomTokenProvider.- Specified by:
build
in interfaceCustomTokenProvider.Builder<SELF extends CustomTokenProvider.Builder<SELF,
T>, T extends CustomTokenProvider> - Returns:
- The instance of the CustomTokenProvider.
-
internalBuild
Builds the instance of the CustomTokenProvider.- Returns:
- The built CustomTokenProvider instance.
-