com.google.api.client.extensions.appengine.auth
Class SignedTokenGenerator
java.lang.Object
com.google.api.client.extensions.appengine.auth.SignedTokenGenerator
public class SignedTokenGenerator
- extends Object
This class will allow you to create a signed JSON web token (JWT) that can be used for assertion
flows with an appropriate auth endpoint.
- Since:
- 1.5
- Author:
- moshenko@google.com (Jacob Moshenko)
|
Method Summary |
static net.oauth.jsontoken.JsonToken |
createJsonTokenForScopes(String scope,
String audience)
Static function to create a signable JSON token initialized with the proper parameters for
performing an assertion token request. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SignedTokenGenerator
public SignedTokenGenerator()
createJsonTokenForScopes
public static net.oauth.jsontoken.JsonToken createJsonTokenForScopes(String scope,
String audience)
- Static function to create a signable JSON token initialized with the proper parameters for
performing an assertion token request.
- Parameters:
scope - Scope for which we are requesting access.audience - Audience field in the json web token.
- Returns:
- Signable JSON web token (JWT).
Copyright © 2011 Google. All Rights Reserved.