Uses of Class
com.google.api.client.auth.oauth2.Credential

Packages that use Credential
com.google.api.client.auth.oauth2 OAuth 2.0 authorization as specified in the OAuth 2.0 Protocol
 

Uses of Credential in com.google.api.client.auth.oauth2
 

Methods in com.google.api.client.auth.oauth2 that return Credential
 Credential Credential.Builder.build()
          Returns a new credential instance.
 Credential AuthorizationCodeFlow.createAndStoreCredential(TokenResponse response, String userId)
          Creates a new credential for the given user ID based on the given token response and store in the credential store.
 Credential AuthorizationCodeFlow.loadCredential(String userId)
          Loads the credential of the given user ID from the credential store.
 Credential Credential.setAccessToken(String accessToken)
          Sets the access token.
 Credential Credential.setExpirationTimeMilliseconds(Long expirationTimeMilliseconds)
          Sets the expected expiration time in milliseconds or null for none.
 Credential Credential.setExpiresInSeconds(Long expiresIn)
          Sets the lifetime in seconds of the access token (for example 3600 for an hour) or null for none.
 Credential Credential.setFromTokenResponse(TokenResponse tokenResponse)
          Sets the access token, refresh token (if available), and expires-in time based on the values from the token response.
 Credential Credential.setRefreshToken(String refreshToken)
          Sets the refresh token.
 

Methods in com.google.api.client.auth.oauth2 with parameters of type Credential
 void MemoryCredentialStore.delete(String userId, Credential credential)
           
 void CredentialStore.delete(String userId, Credential credential)
          Deletes the credential of the given user ID.
 boolean MemoryCredentialStore.load(String userId, Credential credential)
           
 boolean CredentialStore.load(String userId, Credential credential)
          Loads the credential for the given user ID.
 void CredentialStoreRefreshListener.makePersistent(Credential credential)
          Stores the updated credential in the credential store.
 void CredentialStoreRefreshListener.onTokenErrorResponse(Credential credential, TokenErrorResponse tokenErrorResponse)
           
 void CredentialRefreshListener.onTokenErrorResponse(Credential credential, TokenErrorResponse tokenErrorResponse)
          Notifies of an error token response from refreshToken().
 void CredentialStoreRefreshListener.onTokenResponse(Credential credential, TokenResponse tokenResponse)
           
 void CredentialRefreshListener.onTokenResponse(Credential credential, TokenResponse tokenResponse)
          Notifies of a successful token response from refreshToken().
 void MemoryCredentialStore.store(String userId, Credential credential)
           
 void CredentialStore.store(String userId, Credential credential)
          Stores the credential of the given user ID.
 



Copyright © 2011-2012 Google. All Rights Reserved.