@Path(value="/token") public class AccessTokenService extends AbstractTokenService
LOG
Constructor and Description |
---|
AccessTokenService() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAudience(Client c,
javax.ws.rs.core.MultivaluedMap<String,String> params) |
protected AccessTokenGrantHandler |
findGrantHandler(javax.ws.rs.core.MultivaluedMap<String,String> params)
Find the matching grant handler
|
javax.ws.rs.core.Response |
handleTokenRequest(javax.ws.rs.core.MultivaluedMap<String,String> params)
Processes an access token request
|
protected void |
injectContextIntoOAuthProviders() |
protected void |
processClientAccessToken(ClientAccessToken clientToken,
ServerAccessToken serverToken) |
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, checkCertificateBinding, compareTlsCertificates, createErrorResponse, createErrorResponseFromBean, createErrorResponseFromErrorCode, getAndValidateClientFromIdAndSecret, getClient, getClient, getClientFromBasicAuthScheme, getClientFromTLSCertificates, handleException, isCanSupportPublicClients, isConfidenatialClientSecretValid, isValidPublicClient, reportInvalidClient, reportInvalidClient, retrieveClientId, setCanSupportPublicClients, setClientIdProvider, setClientSecretVerifier, setWriteCustomErrors, validateClientAuthenticationMethod
checkTransportSecurity, getDataProvider, getMessageContext, getQueryParameters, getValidClient, getValidClient, isWriteOptionalParameters, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, setBlockUnsecureRequests, setDataProvider, setMessageContext, setWriteOptionalParameters
public void setGrantHandlers(List<AccessTokenGrantHandler> handlers)
handlers
- the grant handlersprotected void injectContextIntoOAuthProviders()
injectContextIntoOAuthProviders
in class AbstractOAuthService
public 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 void checkAudience(Client c, javax.ws.rs.core.MultivaluedMap<String,String> params)
protected AccessTokenGrantHandler findGrantHandler(javax.ws.rs.core.MultivaluedMap<String,String> params)
Apache CXF