Class AwsCredentials (1.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass AwsCredentialsextendsExternalAccountCredentialsAWS credentials representing a third-party identity for calling Google APIs.
By default, attempts to exchange the external credential for a GCP access token.
Inheritance
java.lang.Object > Credentials > OAuth2Credentials > GoogleCredentials > ExternalAccountCredentials > AwsCredentialsInherited Members
Methods
createScoped(Collection<String> newScopes)
publicGoogleCredentialscreateScoped(Collection<String>newScopes)Clones the AwsCredentials with the specified scopes.
newBuilder()
publicstaticAwsCredentials.BuildernewBuilder()newBuilder(AwsCredentials awsCredentials)
publicstaticAwsCredentials.BuildernewBuilder(AwsCredentialsawsCredentials)refreshAccessToken()
publicAccessTokenrefreshAccessToken()Method to refresh the access token according to the specific type of credentials.
Throws IllegalStateException if not overridden since direct use of OAuth2Credentials is only for temporary or non-refreshing access tokens.
retrieveSubjectToken()
publicStringretrieveSubjectToken()Retrieves the external subject token to be exchanged for a GCP access token.
Must be implemented by subclasses as the retrieval method is dependent on the credential source.