public abstract class RedirectionBasedGrantService extends AbstractOAuthService
| Modifier | Constructor and Description |
|---|---|
protected |
RedirectionBasedGrantService(String supportedResponseType,
String supportedGrantType,
boolean isConfidential) |
| Modifier and Type | Method and Description |
|---|---|
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 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) |
checkTransportSecurity, getClient, getClient, getDataProvider, getMessageContext, getQueryParameters, reportInvalidRequestError, setBlockUnsecureRequests, setDataProvider, setMessageContextpublic javax.ws.rs.core.Response authorize()
public javax.ws.rs.core.Response authorizeDecision()
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 javax.ws.rs.core.Response completeAuthorization(javax.ws.rs.core.MultivaluedMap<String,String> params)
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)
Apache CXF