com.google.api.client.extensions.appengine.auth
Class SignedTokenGenerator

java.lang.Object
  extended by 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)

Constructor Summary
SignedTokenGenerator()
           
 
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
 

Constructor Detail

SignedTokenGenerator

public SignedTokenGenerator()
Method Detail

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.