@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 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, authorizePost, canAccessTokenBeReturned, canAuthorizationBeSkipped, completeAuthorization, createAuthorizationData, 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, validateRedirectUri
checkTransportSecurity, getDataProvider, getMessageContext, getQueryParameters, getValidClient, getValidClient, injectContextIntoOAuthProviders, isWriteOptionalParameters, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, setBlockUnsecureRequests, setDataProvider, setMessageContext, setWriteOptionalParameters
protected OAuthRedirectionState recreateRedirectionStateFromParams(javax.ws.rs.core.MultivaluedMap<String,String> params)
recreateRedirectionStateFromParams
in class RedirectionBasedGrantService
protected javax.ws.rs.core.Response createGrant(OAuthRedirectionState state, Client client, List<String> requestedScope, List<String> approvedScope, UserSubject userSubject, ServerAccessToken preauthorizedToken)
createGrant
in class RedirectionBasedGrantService
public 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 RedirectionBasedGrantService
protected javax.ws.rs.core.UriBuilder getRedirectUriBuilder(String state, String redirectUri)
protected boolean canSupportPublicClient(Client c)
canSupportPublicClient
in class RedirectionBasedGrantService
protected boolean canRedirectUriBeEmpty(Client c)
canRedirectUriBeEmpty
in class RedirectionBasedGrantService
public void setCanSupportPublicClients(boolean support)
public void setCodeResponseFilter(AuthorizationCodeResponseFilter filter)
public void setCanSupportEmptyRedirectForPrivateClients(boolean canSupportEmptyRedirectForPrivateClients)
Apache CXF