Apache CXF API

org.apache.cxf.rs.security.oauth2.services
Class ImplicitGrantService

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService
      extended by org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService
          extended by org.apache.cxf.rs.security.oauth2.services.ImplicitGrantService

@Path(value="/authorize-implicit")
public class ImplicitGrantService
extends RedirectionBasedGrantService

Redirection-based Implicit Grant Service This resource handles the End User authorising or denying the Client embedded in the Web agent. We can consider having a single authorization service dealing with either authorization code or implicit grant.


Constructor Summary
ImplicitGrantService()
           
 
Method Summary
protected  javax.ws.rs.core.Response createErrorResponse(javax.ws.rs.core.MultivaluedMap<String,String> params, String redirectUri, String error)
           
protected  javax.ws.rs.core.Response createGrant(javax.ws.rs.core.MultivaluedMap<String,String> params, Client client, String redirectUri, List<String> requestedScope, List<String> approvedScope, UserSubject userSubject, ServerAccessToken preAuthorizedToken)
           
 
Methods inherited from class org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService
authorize, authorizeDecision, authorizeDecisionForm, completeAuthorization, createAuthorizationData, startAuthorization, validateRedirectUri
 
Methods inherited from class org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService
checkTransportSecurity, getClient, getClient, getDataProvider, getMessageContext, getQueryParameters, reportInvalidRequestError, setBlockUnsecureRequests, setDataProvider, setMessageContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplicitGrantService

public ImplicitGrantService()
Method Detail

createGrant

protected javax.ws.rs.core.Response createGrant(javax.ws.rs.core.MultivaluedMap<String,String> params,
                                                Client client,
                                                String redirectUri,
                                                List<String> requestedScope,
                                                List<String> approvedScope,
                                                UserSubject userSubject,
                                                ServerAccessToken preAuthorizedToken)
Specified by:
createGrant in class RedirectionBasedGrantService

createErrorResponse

protected javax.ws.rs.core.Response createErrorResponse(javax.ws.rs.core.MultivaluedMap<String,String> params,
                                                        String redirectUri,
                                                        String error)
Specified by:
createErrorResponse in class RedirectionBasedGrantService

Apache CXF API

Apache CXF