public class OAuth20Validator
extends java.lang.Object
| Constructor and Description |
|---|
OAuth20Validator(org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> webApplicationServiceServiceFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkCallbackValid(org.apereo.cas.services.RegisteredService registeredService,
java.lang.String redirectUri)
Check if the callback url is valid.
|
boolean |
checkClientSecret(org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService,
java.lang.String clientSecret)
Check the client secret.
|
boolean |
checkParameterExist(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
Check if a parameter exists.
|
boolean |
checkServiceValid(org.apereo.cas.services.RegisteredService registeredService)
Check if the service is valid.
|
public OAuth20Validator(org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> webApplicationServiceServiceFactory)
public boolean checkParameterExist(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
request - the HTTP requestname - the parameter namepublic boolean checkServiceValid(org.apereo.cas.services.RegisteredService registeredService)
registeredService - the registered servicepublic boolean checkCallbackValid(org.apereo.cas.services.RegisteredService registeredService,
java.lang.String redirectUri)
registeredService - the registered serviceredirectUri - the callback urlpublic boolean checkClientSecret(org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService,
java.lang.String clientSecret)
registeredService - the registered serviceclientSecret - the client secret