Class HttpBasedServiceCredentialsAuthenticationHandler
- java.lang.Object
-
- org.apereo.cas.authentication.AbstractAuthenticationHandler
-
- org.apereo.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler
-
- All Implemented Interfaces:
org.apereo.cas.authentication.AuthenticationHandler,org.springframework.core.Ordered
public class HttpBasedServiceCredentialsAuthenticationHandler extends AbstractAuthenticationHandler
Class to validate the credential presented by communicating with the web server and checking the certificate that is returned against the hostname, etc.This class is concerned with ensuring that the protocol is HTTPS and that a response is returned. The SSL handshake that occurs automatically by opening a connection does the heavy process of authenticating.
- Since:
- 3.0.0
-
-
Field Summary
-
Fields inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler
credentialSelectionPredicate, principalFactory, servicesManager
-
-
Constructor Summary
Constructors Constructor Description HttpBasedServiceCredentialsAuthenticationHandler(java.lang.String name, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, java.lang.Integer order, org.apereo.cas.util.http.HttpClient httpClient)Instantiates a new Abstract authentication handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apereo.cas.authentication.AuthenticationHandlerExecutionResultauthenticate(org.apereo.cas.authentication.Credential credential)booleansupports(java.lang.Class<? extends org.apereo.cas.authentication.Credential> clazz)booleansupports(org.apereo.cas.authentication.Credential credential)
-
-
-
Constructor Detail
-
HttpBasedServiceCredentialsAuthenticationHandler
public HttpBasedServiceCredentialsAuthenticationHandler(java.lang.String name, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, java.lang.Integer order, org.apereo.cas.util.http.HttpClient httpClient)Instantiates a new Abstract authentication handler.- Parameters:
name- Handler name.servicesManager- the services manager.principalFactory- the principal factoryorder- the orderhttpClient- the http client
-
-
Method Detail
-
authenticate
public org.apereo.cas.authentication.AuthenticationHandlerExecutionResult authenticate(org.apereo.cas.authentication.Credential credential) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
supports
public boolean supports(java.lang.Class<? extends org.apereo.cas.authentication.Credential> clazz)
-
supports
public boolean supports(org.apereo.cas.authentication.Credential credential)
-
-