Class IdentityPoolCredentials (1.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass IdentityPoolCredentialsextendsExternalAccountCredentialsUrl-sourced and file-sourced external account credentials.
By default, attempts to exchange the external credential for a GCP access token.
Inheritance
java.lang.Object > Credentials > OAuth2Credentials > GoogleCredentials > ExternalAccountCredentials > IdentityPoolCredentialsInherited Members
Static Methods
newBuilder()
publicstaticIdentityPoolCredentials.BuildernewBuilder()newBuilder(IdentityPoolCredentials identityPoolCredentials)
publicstaticIdentityPoolCredentials.BuildernewBuilder(IdentityPoolCredentialsidentityPoolCredentials)Methods
createScoped(Collection<String> newScopes)
publicIdentityPoolCredentialscreateScoped(Collection<String>newScopes)Clones the IdentityPoolCredentials with the specified scopes.
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.