Class AppEngineCredentials (1.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass AppEngineCredentialsextendsGoogleCredentialsimplementsServiceAccountSignerOAuth2 credentials representing the built-in service account for Google App Engine. You should only use this class if you are running on AppEngine and are using urlfetch.
Fetches access tokens from the App Identity service.
Implements
ServiceAccountSignerInherited Members
Static Methods
newBuilder()
publicstaticAppEngineCredentials.BuildernewBuilder()Methods
createScoped(Collection<String> scopes)
publicGoogleCredentialscreateScoped(Collection<String>scopes)If the credentials support scopes, creates a copy of the the identity with the specified scopes; otherwise, returns the same instance.
createScopedRequired()
publicbooleancreateScopedRequired()Indicates whether the credentials require scopes to be specified via a call to GoogleCredentials#createScoped before use.
equals(Object obj)
publicbooleanequals(Objectobj)getAccount()
publicStringgetAccount()Returns the service account associated with the signer.
hashCode()
publicinthashCode()refreshAccessToken()
publicAccessTokenrefreshAccessToken()Refresh the access token by getting it from the App Identity service
sign(byte[] toSign)
publicbyte[]sign(byte[]toSign)Signs the provided bytes using the private key associated with the service account.
byte[]toBuilder()
publicAppEngineCredentials.BuildertoBuilder()toString()
publicStringtoString()