Class OAuth2AuthenticationProvider
java.lang.Object
org.projectnessie.client.auth.oauth2.OAuth2AuthenticationProvider
- All Implemented Interfaces:
NessieAuthenticationProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuild the implementation that provides authentication credentials using the given parameters.static HttpAuthenticationcreate(OAuth2Authenticator authenticator) Creates a newOAuth2Authenticatorfrom the given authenticator.static HttpAuthenticationcreate(OAuth2AuthenticatorConfig config) Creates a newOAuth2Authenticatorfrom the given config.The authentication type discriminator.static OAuth2AuthenticatornewAuthenticator(Function<String, String> configSupplier) Creates a newOAuth2Authenticatorfrom the given config supplier.static OAuth2AuthenticatorCreates a newOAuth2Authenticatorfrom the given config.
-
Field Details
-
AUTH_TYPE_VALUE
- See Also:
-
-
Constructor Details
-
OAuth2AuthenticationProvider
public OAuth2AuthenticationProvider()
-
-
Method Details
-
getAuthTypeValue
Description copied from interface:NessieAuthenticationProviderThe authentication type discriminator. If authentication is configured via properties, likeNessieClientBuilder.fromConfig(Function)/NessieClientBuilder.withAuthenticationFromConfig(Function), set the aNessieAuthenticationProviderinstance is used, ifNessieConfigConstants.CONF_NESSIE_AUTH_TYPEequals the value returned by this method.- Specified by:
getAuthTypeValuein interfaceNessieAuthenticationProvider
-
build
Description copied from interface:NessieAuthenticationProviderBuild the implementation that provides authentication credentials using the given parameters.The implementation must throw appropriate exceptions, like
NullPointerExceptionorIllegalArgumentExceptionwith proper and readable explanations, if mandatory configuration options are missing or have wrong/incompatible/invalid values.- Specified by:
buildin interfaceNessieAuthenticationProvider
-
newAuthenticator
Creates a newOAuth2Authenticatorfrom the given config supplier.The returned authenticator is not started yet.
-
newAuthenticator
Creates a newOAuth2Authenticatorfrom the given config.The returned authenticator is not started yet.
-
create
Creates a newOAuth2Authenticatorfrom the given config.The returned authentication is not started yet.
-
create
Creates a newOAuth2Authenticatorfrom the given authenticator.The returned authentication is not started yet.
-