@Beta public class MockAppIdentityService extends Object implements com.google.appengine.api.appidentity.AppIdentityService
Beta
com.google.appengine.api.appidentity.AppIdentityService.GetAccessTokenResult, com.google.appengine.api.appidentity.AppIdentityService.ParsedAppId, com.google.appengine.api.appidentity.AppIdentityService.SigningResult
Constructor and Description |
---|
MockAppIdentityService() |
Modifier and Type | Method and Description |
---|---|
com.google.appengine.api.appidentity.AppIdentityService.GetAccessTokenResult |
getAccessToken(Iterable<String> scopes) |
String |
getAccessTokenText() |
com.google.appengine.api.appidentity.AppIdentityService.GetAccessTokenResult |
getAccessTokenUncached(Iterable<String> scopes) |
String |
getDefaultGcsBucketName() |
int |
getGetAccessTokenCallCount() |
Collection<com.google.appengine.api.appidentity.PublicCertificate> |
getPublicCertificatesForApp() |
String |
getServiceAccountName() |
com.google.appengine.api.appidentity.AppIdentityService.ParsedAppId |
parseFullAppId(String fullAppId) |
void |
setAccessTokenText(String text) |
com.google.appengine.api.appidentity.AppIdentityService.SigningResult |
signForApp(byte[] signBlob) |
public int getGetAccessTokenCallCount()
public String getAccessTokenText()
public void setAccessTokenText(String text)
public com.google.appengine.api.appidentity.AppIdentityService.SigningResult signForApp(byte[] signBlob)
signForApp
in interface com.google.appengine.api.appidentity.AppIdentityService
public Collection<com.google.appengine.api.appidentity.PublicCertificate> getPublicCertificatesForApp()
getPublicCertificatesForApp
in interface com.google.appengine.api.appidentity.AppIdentityService
public com.google.appengine.api.appidentity.AppIdentityService.GetAccessTokenResult getAccessToken(Iterable<String> scopes)
getAccessToken
in interface com.google.appengine.api.appidentity.AppIdentityService
public com.google.appengine.api.appidentity.AppIdentityService.GetAccessTokenResult getAccessTokenUncached(Iterable<String> scopes)
getAccessTokenUncached
in interface com.google.appengine.api.appidentity.AppIdentityService
public String getServiceAccountName()
getServiceAccountName
in interface com.google.appengine.api.appidentity.AppIdentityService
public com.google.appengine.api.appidentity.AppIdentityService.ParsedAppId parseFullAppId(String fullAppId)
parseFullAppId
in interface com.google.appengine.api.appidentity.AppIdentityService
public String getDefaultGcsBucketName()
getDefaultGcsBucketName
in interface com.google.appengine.api.appidentity.AppIdentityService
Copyright © 2010–2019 Google. All rights reserved.