Class OAuth2AuthenticationProvider
- java.lang.Object
-
- org.projectnessie.client.auth.oauth2.OAuth2AuthenticationProvider
-
- All Implemented Interfaces:
NessieAuthenticationProvider
public class OAuth2AuthenticationProvider extends java.lang.Object implements NessieAuthenticationProvider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAUTH_TYPE_VALUE
-
Constructor Summary
Constructors Constructor Description OAuth2AuthenticationProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpAuthenticationbuild(java.util.function.Function<java.lang.String,java.lang.String> configSupplier)Build the implementation that provides authentication credentials using the given parameters.static HttpAuthenticationcreate(OAuth2Authenticator authenticator)java.lang.StringgetAuthTypeValue()The authentication type discriminator.
-
-
-
Field Detail
-
AUTH_TYPE_VALUE
public static final java.lang.String AUTH_TYPE_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAuthTypeValue
public java.lang.String 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
public HttpAuthentication build(java.util.function.Function<java.lang.String,java.lang.String> configSupplier)
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
-
create
public static HttpAuthentication create(OAuth2Authenticator authenticator)
-
-