|
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.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 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 matching grant handler |
List<String> |
getAudiences()
|
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 |
boolean |
isCanSupportPublicClients()
|
protected void |
reportInvalidClient()
|
protected void |
reportInvalidClient(OAuthError error)
|
void |
setAudiences(List<String> audiences)
|
void |
setCanSupportPublicClients(boolean support)
|
void |
setGrantHandler(AccessTokenGrantHandler handler)
Sets a grant handler |
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, 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 void setGrantHandler(AccessTokenGrantHandler handler)
handler - the grant handlerpublic 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)
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 foundprotected void reportInvalidClient()
protected void reportInvalidClient(OAuthError error)
public void setCanSupportPublicClients(boolean support)
public boolean isCanSupportPublicClients()
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 | |||||||||