Package org.projectnessie.client.auth
Class AwsAuthenticationProvider
java.lang.Object
org.projectnessie.client.auth.AwsAuthenticationProvider
- All Implemented Interfaces:
NessieAuthenticationProvider
AWS authentication provider.
Takes parameters NessieConfigConstants.CONF_NESSIE_AWS_REGION.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuild the implementation that provides authentication credentials using the given parameters.static HttpAuthenticationcreate(software.amazon.awssdk.regions.Region region) static HttpAuthenticationThe authentication type discriminator.
-
Field Details
-
AUTH_TYPE_VALUE
- See Also:
-
-
Constructor Details
-
AwsAuthenticationProvider
public AwsAuthenticationProvider()
-
-
Method Details
-
create
-
create
public static HttpAuthentication create(software.amazon.awssdk.regions.Region region, String profile) -
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
-