Apache CXF API

org.apache.cxf.rs.security.oauth.services
Class OAuthDefaultServices

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth.services.OAuthDefaultServices

@Path(value="/")
public class OAuthDefaultServices
extends Object

Default OAuth service implementation


Constructor Summary
OAuthDefaultServices()
           
 
Method Summary
 javax.ws.rs.core.Response authorize()
           
 javax.ws.rs.core.Response authorizeDecision()
           
 javax.ws.rs.core.Response authorizeDecisionForm()
           
 javax.ws.rs.core.Response getAccessToken()
           
 javax.ws.rs.core.Response getAccessTokenWithGET()
           
 javax.ws.rs.core.Response getRequestToken()
           
 javax.ws.rs.core.Response getRequestTokenWithGET()
           
 void setAccessTokenService(AccessTokenService service)
           
 void setAuthorizationService(AuthorizationRequestService service)
           
 void setMessageContext(MessageContext mc)
           
 void setRequestTokenservice(RequestTokenService service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthDefaultServices

public OAuthDefaultServices()
Method Detail

setMessageContext

@Context
public void setMessageContext(MessageContext mc)

setAuthorizationService

public void setAuthorizationService(AuthorizationRequestService service)

setAccessTokenService

public void setAccessTokenService(AccessTokenService service)

setRequestTokenservice

public void setRequestTokenservice(RequestTokenService service)

getRequestToken

@POST
@Path(value="/initiate")
@Produces(value="application/x-www-form-urlencoded")
public javax.ws.rs.core.Response getRequestToken()

getRequestTokenWithGET

@GET
@Path(value="/initiate")
@Produces(value="application/x-www-form-urlencoded")
public javax.ws.rs.core.Response getRequestTokenWithGET()

authorize

@GET
@Path(value="/authorize")
@Produces(value={"application/xhtml+xml","text/html","application/xml","application/json"})
public javax.ws.rs.core.Response authorize()

authorizeDecision

@GET
@Path(value="/authorize/decision")
public javax.ws.rs.core.Response authorizeDecision()

authorizeDecisionForm

@POST
@Path(value="/authorize/decision")
@Consumes(value="application/x-www-form-urlencoded")
public javax.ws.rs.core.Response authorizeDecisionForm()

getAccessTokenWithGET

@GET
@Path(value="/token")
@Produces(value="application/x-www-form-urlencoded")
public javax.ws.rs.core.Response getAccessTokenWithGET()

getAccessToken

@POST
@Path(value="/token")
@Produces(value="application/x-www-form-urlencoded")
public javax.ws.rs.core.Response getAccessToken()

Apache CXF API

Apache CXF