Apache CXF API

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

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

@Path(value="/token")
public class AccessTokenService
extends AbstractOAuthService

This resource will replace a request token with a new access token which will complete the OAuth flow. The third-party consumer will use the access token to access end user resources.


Constructor Summary
AccessTokenService()
           
 
Method Summary
 javax.ws.rs.core.Response getAccessToken()
           
 javax.ws.rs.core.Response getAccessTokenWithGET()
           
 void setAccessTokenHandler(AccessTokenHandler h)
           
 
Methods inherited from class org.apache.cxf.rs.security.oauth.services.AbstractOAuthService
getDataProvider, getMessageContext, getValidator, setDataProvider, setMessageContext, setValidator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessTokenService

public AccessTokenService()
Method Detail

setAccessTokenHandler

public void setAccessTokenHandler(AccessTokenHandler h)

getAccessTokenWithGET

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

getAccessToken

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

Apache CXF API

Apache CXF