Class AnonymousCredentialsProvider
java.lang.Object
software.amazon.awssdk.auth.credentials.AnonymousCredentialsProvider
- All Implemented Interfaces:
- AwsCredentialsProvider,- IdentityProvider<AwsCredentialsIdentity>
@SdkPublicApi
public final class AnonymousCredentialsProvider
extends Object
implements AwsCredentialsProvider
Credentials provider that always returns anonymous 
AwsCredentials. Anonymous AWS credentials result in un-authenticated
 requests and will fail unless the resource or API's policy has been configured to specifically allow anonymous access.- 
Method SummaryModifier and TypeMethodDescriptionstatic AnonymousCredentialsProvidercreate()ReturnsAwsCredentialsthat can be used to authorize an AWS request.toString()Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.auth.credentials.AwsCredentialsProvideridentityType, resolveIdentityMethods inherited from interface software.amazon.awssdk.identity.spi.IdentityProviderresolveIdentity, resolveIdentity
- 
Method Details- 
create
- 
resolveCredentialsDescription copied from interface:AwsCredentialsProviderReturnsAwsCredentialsthat can be used to authorize an AWS request. Each implementation of AWSCredentialsProvider can choose its own strategy for loading credentials. For example, an implementation might load credentials from an existing key management system, or load new credentials when credentials are rotated.If an error occurs during the loading of credentials or credentials could not be found, a runtime exception will be raised. - Specified by:
- resolveCredentialsin interface- AwsCredentialsProvider
- Returns:
- AwsCredentials which the caller can use to authorize an AWS request.
 
- 
toString
 
-