|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AppIdentityService
The AppIdentityService
allows you to sign arbitrary byte
array using per app private key maintained by App Egnine, and also
you can retrieve a list of public certificates which can be used to
verify the signature.
App Engine is responsible for maintaining per application private key. AppEngine will keep rotating private keys periodically. App Engine never gives these private keys to outside.
Since private keys are rotated periodically,
getPublicCertificatesForApp()
could return a list of public
certificates, it's caller's responsibility to try these
certificates one by one when doing signature verification.
Nested Class Summary | |
---|---|
static class |
AppIdentityService.GetAccessTokenResult
GetAccessTokenResult is returned by getAccessToken. |
static class |
AppIdentityService.SigningResult
SigningResult is returned by signForApp, which contains
signing key name and signature. |
Method Summary | |
---|---|
AppIdentityService.GetAccessTokenResult |
getAccessToken(java.lang.Iterable<java.lang.String> scopes)
OAuth2 access token to act on behalf of the application. |
AppIdentityService.GetAccessTokenResult |
getAccessTokenUncached(java.lang.Iterable<java.lang.String> scopes)
OAuth2 access token to act on behalf of the application, uncached. |
java.util.Collection<PublicCertificate> |
getPublicCertificatesForApp()
Retrieves a list of public certificates. |
java.lang.String |
getServiceAccountName()
Gets service account name of the app. |
AppIdentityService.SigningResult |
signForApp(byte[] signBlob)
Requests to sign arbitrary byte array using per app private key. |
Method Detail |
---|
AppIdentityService.SigningResult signForApp(byte[] signBlob)
signBlob
- string blob.
AppIdentityServiceFailureException
java.util.Collection<PublicCertificate> getPublicCertificatesForApp()
AppIdentityServiceFailureException
java.lang.String getServiceAccountName()
AppIdentityService.GetAccessTokenResult getAccessTokenUncached(java.lang.Iterable<java.lang.String> scopes)
scopes
- iterable of scopes to request.
AppIdentityServiceFailureException
AppIdentityService.GetAccessTokenResult getAccessToken(java.lang.Iterable<java.lang.String> scopes)
scopes
- iterable of scopes to request.
AppIdentityServiceFailureException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |