public class OAuth20ClientCredentialsGrantTypeRequestValidator extends java.lang.Object implements OAuth20RequestValidator
| Constructor and Description |
|---|
OAuth20ClientCredentialsGrantTypeRequestValidator(org.apereo.cas.services.ServicesManager servicesManager,
OAuth20Validator validator) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apereo.cas.support.oauth.services.OAuthRegisteredService |
getRegisteredServiceByClientId(java.lang.String clientId)
Gets registered service by client id.
|
boolean |
supports(org.pac4j.core.context.J2EContext context)
Supports request?
|
boolean |
validate(org.pac4j.core.context.J2EContext context)
Validate request.
|
public OAuth20ClientCredentialsGrantTypeRequestValidator(org.apereo.cas.services.ServicesManager servicesManager,
OAuth20Validator validator)
public boolean validate(org.pac4j.core.context.J2EContext context)
OAuth20RequestValidatorvalidate in interface OAuth20RequestValidatorcontext - the contextprotected org.apereo.cas.support.oauth.services.OAuthRegisteredService getRegisteredServiceByClientId(java.lang.String clientId)
clientId - the client idpublic boolean supports(org.pac4j.core.context.J2EContext context)
OAuth20RequestValidatorsupports in interface OAuth20RequestValidatorcontext - the context