Apache CXF API

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

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService
      extended by org.apache.cxf.rs.security.oauth2.services.AbstractTokenService
          extended by org.apache.cxf.rs.security.oauth2.services.TokenRevocationService

@Path(value="/revoke")
public class TokenRevocationService
extends AbstractTokenService

OAuth2 Token Revocation Service implementation


Constructor Summary
TokenRevocationService()
           
 
Method Summary
 javax.ws.rs.core.Response handleTokenRevocation(javax.ws.rs.core.MultivaluedMap<String,String> params)
          Processes a token revocation request
 
Methods inherited from class org.apache.cxf.rs.security.oauth2.services.AbstractTokenService
authenticateClientIfNeeded, compareTlsCertificates, createErrorResponse, createErrorResponseFromBean, getAndValidateClientFromIdAndSecret, getClient, getClientFromBasicAuthScheme, getClientFromTLSCertificates, getClientIdFromTLSCertificates, handleException, isCanSupportPublicClients, reportInvalidClient, reportInvalidClient, setCanSupportPublicClients, setClientIdProvider, setWriteCustomErrors
 
Methods inherited from class org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService
checkTransportSecurity, getDataProvider, getMessageContext, getQueryParameters, getValidClient, getValidClient, isWriteOptionalParameters, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, setBlockUnsecureRequests, setDataProvider, setMessageContext, setWriteOptionalParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenRevocationService

public TokenRevocationService()
Method Detail

handleTokenRevocation

@POST
@Consumes(value="application/x-www-form-urlencoded")
@Produces(value="application/json")
public javax.ws.rs.core.Response handleTokenRevocation(javax.ws.rs.core.MultivaluedMap<String,String> params)
Processes a token revocation request

Parameters:
params - the form parameters representing the access token grant
Returns:
Access Token or the error

Apache CXF API

Apache CXF