org.apache.cxf.rs.security.oauth2.services
Class AccessTokenService
java.lang.Object
org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService
org.apache.cxf.rs.security.oauth2.services.AccessTokenService
@Path(value="/token")
public class AccessTokenService
- extends AbstractOAuthService
OAuth2 Access Token Service implementation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccessTokenService
public AccessTokenService()
setWriteOptionalParameters
public void setWriteOptionalParameters(boolean write)
setWriteCustomErrors
public void setWriteCustomErrors(boolean write)
setGrantHandlers
public void setGrantHandlers(List<AccessTokenGrantHandler> handlers)
- Sets the list of optional grant handlers
- Parameters:
handlers
- the grant handlers
handleTokenRequest
public javax.ws.rs.core.Response handleTokenRequest(javax.ws.rs.core.MultivaluedMap<String,String> params)
- Processes an access token request
- Parameters:
params
- the form parameters representing the access token grant
- Returns:
- Access Token or the error
findGrantHandler
protected AccessTokenGrantHandler findGrantHandler(javax.ws.rs.core.MultivaluedMap<String,String> params)
- Find the mathcing grant handler
createErrorResponse
protected javax.ws.rs.core.Response createErrorResponse(javax.ws.rs.core.MultivaluedMap<String,String> params,
String error)
createErrorResponseFromBean
protected javax.ws.rs.core.Response createErrorResponseFromBean(OAuthError errorBean)
Apache CXF