|
Apache CXF API | |||||||||
| 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.AbstractTokenService
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 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 |
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 |
| 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 |
|---|
public AccessTokenService()
| Method Detail |
|---|
public void setGrantHandlers(List<AccessTokenGrantHandler> handlers)
handlers - the grant handlerspublic void setGrantHandler(AccessTokenGrantHandler handler)
handler - the grant handler@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 grant
protected void checkAudience(javax.ws.rs.core.MultivaluedMap<String,String> params)
protected AccessTokenGrantHandler findGrantHandler(javax.ws.rs.core.MultivaluedMap<String,String> params)
public List<String> getAudiences()
public void setAudiences(List<String> audiences)
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||