@Path(value="/token") public class AccessTokenService extends AbstractTokenService
LOG| Constructor and Description |
|---|
AccessTokenService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAudience(javax.ws.rs.core.MultivaluedMap<String,String> params) |
protected AccessTokenGrantHandler |
findGrantHandler(javax.ws.rs.core.MultivaluedMap<String,String> params)
Find the matching grant handler
|
List<String> |
getAudiences() |
javax.ws.rs.core.Response |
handleTokenRequest(javax.ws.rs.core.MultivaluedMap<String,String> params)
Processes an access token request
|
protected void |
processClientAccessToken(ClientAccessToken clientToken,
ServerAccessToken serverToken) |
void |
setAudiences(List<String> audiences) |
void |
setGrantHandler(AccessTokenGrantHandler handler)
Sets a grant handler
|
void |
setGrantHandlers(List<AccessTokenGrantHandler> handlers)
Sets the list of optional grant handlers
|
void |
setResponseFilter(AccessTokenResponseFilter responseHandler) |
void |
setResponseFilters(List<AccessTokenResponseFilter> handlers) |
authenticateClientIfNeeded, compareTlsCertificates, createErrorResponse, createErrorResponseFromBean, getAndValidateClientFromIdAndSecret, getClient, getClientFromBasicAuthScheme, getClientFromTLSCertificates, getClientIdFromTLSCertificates, handleException, isCanSupportPublicClients, isConfidenatialClientSecretValid, isValidPublicClient, reportInvalidClient, reportInvalidClient, retrieveClientId, setCanSupportPublicClients, setClientIdProvider, setWriteCustomErrorscheckTransportSecurity, getDataProvider, getMessageContext, getQueryParameters, getValidClient, getValidClient, isWriteOptionalParameters, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, setBlockUnsecureRequests, setDataProvider, setMessageContext, setWriteOptionalParameterspublic void setGrantHandlers(List<AccessTokenGrantHandler> handlers)
handlers - the grant handlerspublic void setGrantHandler(AccessTokenGrantHandler handler)
handler - the grant handlerpublic void setResponseFilters(List<AccessTokenResponseFilter> handlers)
public void setResponseFilter(AccessTokenResponseFilter responseHandler)
@POST @Consumes(value="application/x-www-form-urlencoded") @Produces(value="application/json") public javax.ws.rs.core.Response handleTokenRequest(javax.ws.rs.core.MultivaluedMap<String,String> params)
params - the form parameters representing the access token grantprotected void processClientAccessToken(ClientAccessToken clientToken, ServerAccessToken serverToken)
protected AccessTokenGrantHandler findGrantHandler(javax.ws.rs.core.MultivaluedMap<String,String> params)
Apache CXF