public abstract class BaseOAuth20TokenRequestValidator extends java.lang.Object implements OAuth20TokenRequestValidator
BaseOAuth20TokenRequestValidator.| Modifier and Type | Field and Description |
|---|---|
protected org.apereo.cas.audit.AuditableExecution |
registeredServiceAccessStrategyEnforcer
Access strategy enforcer.
|
protected org.apereo.cas.services.ServicesManager |
servicesManager
Service manager instance, managing the registry.
|
protected org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> |
webApplicationServiceServiceFactory
Service factory instance.
|
| Constructor and Description |
|---|
BaseOAuth20TokenRequestValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract OAuth20GrantTypes |
getGrantType()
Gets grant type.
|
protected boolean |
isGrantTypeSupportedBy(org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService,
OAuth20GrantTypes type)
Is grant type supported.
|
protected boolean |
isGrantTypeSupportedBy(org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService,
java.lang.String type)
Is grant type supported service.
|
boolean |
supports(org.pac4j.core.context.J2EContext context)
Supports request?
|
boolean |
validate(org.pac4j.core.context.J2EContext context)
Validate request.
|
protected boolean |
validateInternal(org.pac4j.core.context.J2EContext context,
java.lang.String grantType,
org.pac4j.core.profile.ProfileManager manager,
org.pac4j.core.profile.UserProfile userProfile)
Validate internal.
|
protected final org.apereo.cas.audit.AuditableExecution registeredServiceAccessStrategyEnforcer
protected final org.apereo.cas.services.ServicesManager servicesManager
protected final org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> webApplicationServiceServiceFactory
protected boolean isGrantTypeSupportedBy(org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService,
OAuth20GrantTypes type)
registeredService - the registered servicetype - the typeprotected boolean isGrantTypeSupportedBy(org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService,
java.lang.String type)
registeredService - the registered servicetype - the typepublic boolean validate(org.pac4j.core.context.J2EContext context)
OAuth20RequestValidatorvalidate in interface OAuth20RequestValidatorcontext - the contextprotected boolean validateInternal(org.pac4j.core.context.J2EContext context,
java.lang.String grantType,
org.pac4j.core.profile.ProfileManager manager,
org.pac4j.core.profile.UserProfile userProfile)
context - the contextgrantType - the grant typemanager - the manageruserProfile - the profileprotected abstract OAuth20GrantTypes getGrantType()
public boolean supports(org.pac4j.core.context.J2EContext context)
OAuth20RequestValidatorsupports in interface OAuth20RequestValidatorcontext - the context