|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.rs.security.oauth2.services.AbstractOAuthService
org.apache.cxf.rs.security.oauth2.services.AccessTokenService
@Path(value="/token") public class AccessTokenService
OAuth2 Access Token Service implementation
| Constructor Summary | |
|---|---|
AccessTokenService()
|
|
| Method Summary | |
|---|---|
protected javax.ws.rs.core.Response |
createErrorResponse(javax.ws.rs.core.MultivaluedMap<String,String> params,
String error)
|
protected javax.ws.rs.core.Response |
createErrorResponseFromBean(OAuthError errorBean)
|
protected AccessTokenGrantHandler |
findGrantHandler(javax.ws.rs.core.MultivaluedMap<String,String> params)
Find the mathcing grant handler |
protected Client |
getClient(String clientId)
Get the Client reference |
javax.ws.rs.core.Response |
handleTokenRequest(javax.ws.rs.core.MultivaluedMap<String,String> params)
Processes an access token request |
void |
setGrantHandlers(List<AccessTokenGrantHandler> handlers)
Sets the list of optional grant handlers |
void |
setWriteCustomErrors(boolean write)
|
| Methods inherited from class org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService |
|---|
checkTransportSecurity, getDataProvider, getMessageContext, getQueryParameters, getValidClient, getValidClient, isWriteOptionalParameters, 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 |
|---|
public AccessTokenService()
| Method Detail |
|---|
public void setWriteCustomErrors(boolean write)
public void setGrantHandlers(List<AccessTokenGrantHandler> handlers)
handlers - the grant handlerspublic javax.ws.rs.core.Response handleTokenRequest(javax.ws.rs.core.MultivaluedMap<String,String> params)
params - the form parameters representing the access token grant
protected AccessTokenGrantHandler findGrantHandler(javax.ws.rs.core.MultivaluedMap<String,String> params)
protected javax.ws.rs.core.Response createErrorResponse(javax.ws.rs.core.MultivaluedMap<String,String> params,
String error)
protected javax.ws.rs.core.Response createErrorResponseFromBean(OAuthError errorBean)
protected Client getClient(String clientId)
Client reference
clientId - the provided client id
{@link - javax.ws.rs.WebApplicationException} if no matching Client is found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||