@Path(value="/authorize") public class AuthorizationCodeGrantService extends RedirectionBasedGrantService
LOG| Constructor and Description |
|---|
AuthorizationCodeGrantService() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canRedirectUriBeEmpty(Client c) |
protected boolean |
canSupportPublicClient(Client c) |
protected OAuthAuthorizationData |
createAuthorizationData(Client client,
javax.ws.rs.core.MultivaluedMap<String,String> params,
String redirectUri,
UserSubject subject,
List<OAuthPermission> requestedPerms,
List<OAuthPermission> alreadyAuthorizedPerms,
boolean authorizationCanBeSkipped)
Create the authorization challenge data
|
protected AuthorizationCodeRegistration |
createCodeRegistration(OAuthRedirectionState state,
Client client,
List<String> requestedScope,
List<String> approvedScope,
UserSubject userSubject,
ServerAccessToken preauthorizedToken) |
protected javax.ws.rs.core.Response |
createErrorResponse(String state,
String redirectUri,
String error) |
protected javax.ws.rs.core.Response |
createGrant(OAuthRedirectionState state,
Client client,
List<String> requestedScope,
List<String> approvedScope,
UserSubject userSubject,
ServerAccessToken preauthorizedToken) |
protected javax.ws.rs.core.Response |
deliverOOBResponse(OOBAuthorizationResponse response) |
ServerAuthorizationCodeGrant |
getGrantRepresentation(OAuthRedirectionState state,
Client client,
List<String> requestedScope,
List<String> approvedScope,
UserSubject userSubject,
ServerAccessToken preauthorizedToken) |
protected javax.ws.rs.core.UriBuilder |
getRedirectUriBuilder(String state,
String redirectUri) |
protected String |
processCodeGrant(Client client,
String code,
UserSubject endUser) |
protected OAuthRedirectionState |
recreateRedirectionStateFromParams(javax.ws.rs.core.MultivaluedMap<String,String> params) |
void |
setCanSupportEmptyRedirectForPrivateClients(boolean canSupportEmptyRedirectForPrivateClients) |
void |
setCanSupportPublicClients(boolean support) |
void |
setCodeResponseFilter(AuthorizationCodeResponseFilter filter) |
authorize, authorizeDecision, authorizeDecisionForm, canAccessTokenBeReturned, canAuthorizationBeSkipped, completeAuthorization, createErrorResponse, createHtmlResponse, createUserSubject, getAndValidateSecurityContext, getApprovedScope, getClient, getSupportedGrantType, getSupportedResponseTypes, isFormResponse, isRevokePreauthorizedTokenOnApproval, noConsentForRequestedScopes, personalizeData, recreateRedirectionStateFromSession, setAuthorizationFilter, setHidePreauthorizedScopesInForm, setMatchRedirectUriWithApplicationUri, setMaxDefaultSessionInterval, setPartialMatchScopeValidation, setResourceOwnerNameProvider, setRevokePreauthorizedTokenOnApproval, setScopesRequiringNoConsent, setSessionAuthenticityTokenProvider, setSubjectCreator, setSupportSinglePageApplications, setUseAllClientScopes, setUseRegisteredRedirectUriIfPossible, startAuthorization, startAuthorization, validateRedirectUricheckTransportSecurity, getDataProvider, getMessageContext, getQueryParameters, getValidClient, getValidClient, injectContextIntoOAuthProviders, isWriteOptionalParameters, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, setBlockUnsecureRequests, setDataProvider, setMessageContext, setWriteOptionalParametersprotected OAuthAuthorizationData createAuthorizationData(Client client, javax.ws.rs.core.MultivaluedMap<String,String> params, String redirectUri, UserSubject subject, List<OAuthPermission> requestedPerms, List<OAuthPermission> alreadyAuthorizedPerms, boolean authorizationCanBeSkipped)
RedirectionBasedGrantServicecreateAuthorizationData in class RedirectionBasedGrantServiceprotected OAuthRedirectionState recreateRedirectionStateFromParams(javax.ws.rs.core.MultivaluedMap<String,String> params)
recreateRedirectionStateFromParams in class RedirectionBasedGrantServiceprotected javax.ws.rs.core.Response createGrant(OAuthRedirectionState state, Client client, List<String> requestedScope, List<String> approvedScope, UserSubject userSubject, ServerAccessToken preauthorizedToken)
createGrant in class RedirectionBasedGrantServicepublic ServerAuthorizationCodeGrant getGrantRepresentation(OAuthRedirectionState state, Client client, List<String> requestedScope, List<String> approvedScope, UserSubject userSubject, ServerAccessToken preauthorizedToken)
protected AuthorizationCodeRegistration createCodeRegistration(OAuthRedirectionState state, Client client, List<String> requestedScope, List<String> approvedScope, UserSubject userSubject, ServerAccessToken preauthorizedToken)
protected String processCodeGrant(Client client, String code, UserSubject endUser)
protected javax.ws.rs.core.Response deliverOOBResponse(OOBAuthorizationResponse response)
protected javax.ws.rs.core.Response createErrorResponse(String state, String redirectUri, String error)
createErrorResponse in class RedirectionBasedGrantServiceprotected javax.ws.rs.core.UriBuilder getRedirectUriBuilder(String state, String redirectUri)
protected boolean canSupportPublicClient(Client c)
canSupportPublicClient in class RedirectionBasedGrantServiceprotected boolean canRedirectUriBeEmpty(Client c)
canRedirectUriBeEmpty in class RedirectionBasedGrantServicepublic void setCanSupportPublicClients(boolean support)
public void setCodeResponseFilter(AuthorizationCodeResponseFilter filter)
public void setCanSupportEmptyRedirectForPrivateClients(boolean canSupportEmptyRedirectForPrivateClients)
Apache CXF