Class MockAppIdentityService (2.4.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
Name Description
scopes Iterable<String>
Returns
Type Description
com.google.appengine.api.appidentity.AppIdentityService.GetAccessTokenResult

getAccessTokenText()

public String getAccessTokenText()
Returns
Type Description
String

getAccessTokenUncached(Iterable<String> scopes)

public AppIdentityService.GetAccessTokenResult getAccessTokenUncached(Iterable<String> scopes)
Parameter
Name Description
scopes Iterable<String>
Returns
Type Description
com.google.appengine.api.appidentity.AppIdentityService.GetAccessTokenResult

getDefaultGcsBucketName()

public String getDefaultGcsBucketName()
Returns
Type Description
String

getGetAccessTokenCallCount()

public int getGetAccessTokenCallCount()
Returns
Type Description
int

getPublicCertificatesForApp()

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

getServiceAccountName()

public String getServiceAccountName()
Returns
Type Description
String

parseFullAppId(String fullAppId)

public AppIdentityService.ParsedAppId parseFullAppId(String fullAppId)
Parameter
Name Description
fullAppId String
Returns
Type Description
com.google.appengine.api.appidentity.AppIdentityService.ParsedAppId

setAccessTokenText(String text)

public void setAccessTokenText(String text)
Parameter
Name Description
text String

signForApp(byte[] signBlob)

public AppIdentityService.SigningResult signForApp(byte[] signBlob)
Parameter
Name Description
signBlob byte[]
Returns
Type Description
com.google.appengine.api.appidentity.AppIdentityService.SigningResult