|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService
public abstract class AbstractOAuthService
Abstract OAuth service
Constructor Summary | |
---|---|
AbstractOAuthService()
|
Method Summary | |
---|---|
protected void |
checkTransportSecurity()
HTTPS is the default transport for OAuth 2.0 services. |
protected Client |
getClient(javax.ws.rs.core.MultivaluedMap<String,String> params)
|
protected Client |
getClient(String clientId)
Get the Client reference |
OAuthDataProvider |
getDataProvider()
|
MessageContext |
getMessageContext()
|
protected javax.ws.rs.core.MultivaluedMap<String,String> |
getQueryParameters()
|
protected void |
reportInvalidRequestError(String errorDescription)
|
void |
setBlockUnsecureRequests(boolean blockUnsecureRequests)
HTTPS is the default transport for OAuth 2.0 services, this property can be used to block all the requests issued over HTTP |
void |
setDataProvider(OAuthDataProvider dataProvider)
|
void |
setMessageContext(MessageContext context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractOAuthService()
Method Detail |
---|
@Context public void setMessageContext(MessageContext context)
public MessageContext getMessageContext()
public void setDataProvider(OAuthDataProvider dataProvider)
public OAuthDataProvider getDataProvider()
protected javax.ws.rs.core.MultivaluedMap<String,String> getQueryParameters()
protected Client getClient(javax.ws.rs.core.MultivaluedMap<String,String> params)
protected Client getClient(String clientId)
Client
reference
clientId
- the provided client id
javax.ws.rs.WebApplicationException
- if no matching Client is found,
the error is returned directly to the end user without
following the redirect URI if anyprotected void checkTransportSecurity()
protected void reportInvalidRequestError(String errorDescription)
public void setBlockUnsecureRequests(boolean blockUnsecureRequests)
blockUnsecureRequests
- if set to true then HTTP requests will be blocked
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |