Class MockAppIdentityService (2.0.1)

public class MockAppIdentityService implements AppIdentityService

Beta
Mock implementation of AppIdentityService interface for testing.

Inheritance

java.lang.Object > MockAppIdentityService

Implements

com.google.appengine.api.appidentity.AppIdentityService

Constructors

MockAppIdentityService()

public MockAppIdentityService()

Methods

getAccessToken(Iterable<String> scopes)

public AppIdentityService.GetAccessTokenResult getAccessToken(Iterable<String> scopes)
Parameter
NameDescription
scopesIterable<String>
Returns
TypeDescription
com.google.appengine.api.appidentity.AppIdentityService.GetAccessTokenResult

getAccessTokenText()

public String getAccessTokenText()
Returns
TypeDescription
String

getAccessTokenUncached(Iterable<String> scopes)

public AppIdentityService.GetAccessTokenResult getAccessTokenUncached(Iterable<String> scopes)
Parameter
NameDescription
scopesIterable<String>
Returns
TypeDescription
com.google.appengine.api.appidentity.AppIdentityService.GetAccessTokenResult

getDefaultGcsBucketName()

public String getDefaultGcsBucketName()
Returns
TypeDescription
String

getGetAccessTokenCallCount()

public int getGetAccessTokenCallCount()
Returns
TypeDescription
int

getPublicCertificatesForApp()

public Collection<PublicCertificate> getPublicCertificatesForApp()
Returns
TypeDescription
Collection<com.google.appengine.api.appidentity.PublicCertificate>

getServiceAccountName()

public String getServiceAccountName()
Returns
TypeDescription
String

parseFullAppId(String fullAppId)

public AppIdentityService.ParsedAppId parseFullAppId(String fullAppId)
Parameter
NameDescription
fullAppIdString
Returns
TypeDescription
com.google.appengine.api.appidentity.AppIdentityService.ParsedAppId

setAccessTokenText(String text)

public void setAccessTokenText(String text)
Parameter
NameDescription
textString

signForApp(byte[] signBlob)

public AppIdentityService.SigningResult signForApp(byte[] signBlob)
Parameter
NameDescription
signBlobbyte[]
Returns
TypeDescription
com.google.appengine.api.appidentity.AppIdentityService.SigningResult