public class AccessTokenAuthorizationCodeGrantRequestExtractor extends BaseAccessTokenGrantRequestExtractor
| Modifier and Type | Field and Description |
|---|---|
protected org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> |
webApplicationServiceServiceFactory
Service factory instance.
|
centralAuthenticationService, oAuthProperties, servicesManager, ticketRegistry| Constructor and Description |
|---|
AccessTokenAuthorizationCodeGrantRequestExtractor(org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.ticket.registry.TicketRegistry ticketRegistry,
org.apereo.cas.CentralAuthenticationService centralAuthenticationService,
org.apereo.cas.configuration.model.support.oauth.OAuthProperties oAuthProperties,
org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> webApplicationServiceServiceFactory) |
| Modifier and Type | Method and Description |
|---|---|
AccessTokenRequestDataHolder |
extract(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Extract access token request for grant.
|
OAuth20GrantTypes |
getGrantType()
Gets grant type.
|
protected java.lang.String |
getOAuthParameter(javax.servlet.http.HttpServletRequest request)
Gets o auth parameter.
|
protected java.lang.String |
getOAuthParameterName() |
protected org.apereo.cas.support.oauth.services.OAuthRegisteredService |
getOAuthRegisteredServiceBy(javax.servlet.http.HttpServletRequest request)
Gets oauth registered service from the request.
|
protected org.apereo.cas.ticket.OAuthToken |
getOAuthTokenFromRequest(javax.servlet.http.HttpServletRequest request)
Return the OAuth token.
|
protected java.lang.String |
getRegisteredServiceIdentifierFromRequest(javax.servlet.http.HttpServletRequest request)
Gets registered service identifier from request.
|
protected boolean |
isAllowedToGenerateRefreshToken()
Is allowed to generate refresh token ?
|
boolean |
supports(javax.servlet.http.HttpServletRequest context)
Supports the grant type?
|
protected final org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> webApplicationServiceServiceFactory
public AccessTokenAuthorizationCodeGrantRequestExtractor(org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.ticket.registry.TicketRegistry ticketRegistry,
org.apereo.cas.CentralAuthenticationService centralAuthenticationService,
org.apereo.cas.configuration.model.support.oauth.OAuthProperties oAuthProperties,
org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> webApplicationServiceServiceFactory)
public AccessTokenRequestDataHolder extract(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
BaseAccessTokenGrantRequestExtractorextract in class BaseAccessTokenGrantRequestExtractorrequest - the requestresponse - the responseprotected java.lang.String getRegisteredServiceIdentifierFromRequest(javax.servlet.http.HttpServletRequest request)
request - the requestprotected boolean isAllowedToGenerateRefreshToken()
protected java.lang.String getOAuthParameterName()
protected java.lang.String getOAuthParameter(javax.servlet.http.HttpServletRequest request)
request - the requestprotected org.apereo.cas.ticket.OAuthToken getOAuthTokenFromRequest(javax.servlet.http.HttpServletRequest request)
request - the requestpublic boolean supports(javax.servlet.http.HttpServletRequest context)
supports in class BaseAccessTokenGrantRequestExtractorcontext - the contextpublic OAuth20GrantTypes getGrantType()
BaseAccessTokenGrantRequestExtractorgetGrantType in class BaseAccessTokenGrantRequestExtractorprotected org.apereo.cas.support.oauth.services.OAuthRegisteredService getOAuthRegisteredServiceBy(javax.servlet.http.HttpServletRequest request)
request - the request