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