org.glassfish.jersey.examples.oauth2.googleclient.resource
Class AuthorizationResource

java.lang.Object
  extended by org.glassfish.jersey.examples.oauth2.googleclient.resource.AuthorizationResource

@Path(value="oauth2")
public class AuthorizationResource
extends Object

User will be redirected back to this resource after he/she grants access to our application.

Author:
Miroslav Fuksa (miroslav.fuksa at oracle.com)

Constructor Summary
AuthorizationResource()
           
 
Method Summary
 javax.ws.rs.core.Response authorize(String code, String state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationResource

public AuthorizationResource()
Method Detail

authorize

@GET
@Path(value="authorize")
public javax.ws.rs.core.Response authorize(@QueryParam(value="code")
                                                    String code,
                                                    @QueryParam(value="state")
                                                    String state)


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.