Class MockCredential

java.lang.Object
com.google.api.client.auth.oauth2.Credential
com.google.datastore.v1.client.testing.MockCredential
All Implemented Interfaces:
com.google.api.client.http.HttpExecuteInterceptor, com.google.api.client.http.HttpRequestInitializer, com.google.api.client.http.HttpUnsuccessfulResponseHandler

public class MockCredential extends com.google.api.client.auth.oauth2.Credential
Fake credential used for testing purpose.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.google.api.client.auth.oauth2.Credential

    com.google.api.client.auth.oauth2.Credential.AccessMethod, com.google.api.client.auth.oauth2.Credential.Builder
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class com.google.api.client.auth.oauth2.Credential

    executeRefreshToken, getAccessToken, getClientAuthentication, getClock, getExpirationTimeMilliseconds, getExpiresInSeconds, getJsonFactory, getMethod, getRefreshListeners, getRefreshToken, getRequestInitializer, getTokenServerEncodedUrl, getTransport, handleResponse, initialize, intercept, refreshToken, setAccessToken, setExpirationTimeMilliseconds, setExpiresInSeconds, setFromTokenResponse, setRefreshToken

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MockCredential

      public MockCredential()