|
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.RedirectionBasedGrantService
public abstract class RedirectionBasedGrantService
The Base Redirection-Based Grant Service
| Constructor Summary | |
|---|---|
protected |
RedirectionBasedGrantService(String supportedResponseType,
String supportedGrantType,
boolean isConfidential)
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
authorize()
Handles the initial authorization request by preparing the authorization challenge data and returning it to the user. |
javax.ws.rs.core.Response |
authorizeDecision()
Processes the end user decision |
javax.ws.rs.core.Response |
authorizeDecisionForm(javax.ws.rs.core.MultivaluedMap<String,String> params)
Processes the end user decision |
protected javax.ws.rs.core.Response |
completeAuthorization(javax.ws.rs.core.MultivaluedMap<String,String> params)
Completes the authorization process |
protected OAuthAuthorizationData |
createAuthorizationData(Client client,
javax.ws.rs.core.MultivaluedMap<String,String> params,
List<OAuthPermission> perms)
Create the authorization challenge data |
protected abstract javax.ws.rs.core.Response |
createErrorResponse(javax.ws.rs.core.MultivaluedMap<String,String> params,
String redirectUri,
String error)
|
protected abstract javax.ws.rs.core.Response |
createGrant(javax.ws.rs.core.MultivaluedMap<String,String> params,
Client client,
String redirectUri,
List<String> requestedScope,
List<String> approvedScope,
UserSubject userSubject,
ServerAccessToken preAuthorizedToken)
|
protected UserSubject |
createUserSubject(SecurityContext securityContext)
|
protected Client |
getClient(javax.ws.rs.core.MultivaluedMap<String,String> params)
Get the Client reference |
protected void |
personalizeData(OAuthAuthorizationData data,
UserSubject userSubject)
|
void |
setResourceOwnerNameProvider(ResourceOwnerNameProvider resourceOwnerNameProvider)
|
void |
setSessionAuthenticityTokenProvider(SessionAuthenticityTokenProvider sessionAuthenticityTokenProvider)
|
void |
setSubjectCreator(SubjectCreator creator)
|
protected javax.ws.rs.core.Response |
startAuthorization(javax.ws.rs.core.MultivaluedMap<String,String> params)
Starts the authorization process |
protected String |
validateRedirectUri(Client client,
String redirectUri)
|
| Methods inherited from class org.apache.cxf.rs.security.oauth2.services.AbstractOAuthService |
|---|
checkTransportSecurity, getDataProvider, getMessageContext, getQueryParameters, getValidClient, getValidClient, isWriteOptionalParameters, 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 |
|---|
protected RedirectionBasedGrantService(String supportedResponseType,
String supportedGrantType,
boolean isConfidential)
| Method Detail |
|---|
public javax.ws.rs.core.Response authorize()
@Path(value="/decision") public javax.ws.rs.core.Response authorizeDecision()
@Path(value="/decision") public javax.ws.rs.core.Response authorizeDecisionForm(javax.ws.rs.core.MultivaluedMap<String,String> params)
protected javax.ws.rs.core.Response startAuthorization(javax.ws.rs.core.MultivaluedMap<String,String> params)
protected OAuthAuthorizationData createAuthorizationData(Client client,
javax.ws.rs.core.MultivaluedMap<String,String> params,
List<OAuthPermission> perms)
protected void personalizeData(OAuthAuthorizationData data,
UserSubject userSubject)
protected javax.ws.rs.core.Response completeAuthorization(javax.ws.rs.core.MultivaluedMap<String,String> params)
public void setSessionAuthenticityTokenProvider(SessionAuthenticityTokenProvider sessionAuthenticityTokenProvider)
public void setSubjectCreator(SubjectCreator creator)
protected UserSubject createUserSubject(SecurityContext securityContext)
protected abstract javax.ws.rs.core.Response createErrorResponse(javax.ws.rs.core.MultivaluedMap<String,String> params,
String redirectUri,
String error)
protected abstract javax.ws.rs.core.Response createGrant(javax.ws.rs.core.MultivaluedMap<String,String> params,
Client client,
String redirectUri,
List<String> requestedScope,
List<String> approvedScope,
UserSubject userSubject,
ServerAccessToken preAuthorizedToken)
protected String validateRedirectUri(Client client,
String redirectUri)
protected Client getClient(javax.ws.rs.core.MultivaluedMap<String,String> params)
Client reference
params - request parameters
{@link - 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 anypublic void setResourceOwnerNameProvider(ResourceOwnerNameProvider resourceOwnerNameProvider)
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||