Class 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
    • 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.AuthenticationHandlerExecutionResult authenticate​(org.apereo.cas.authentication.Credential credential)  
      boolean supports​(java.lang.Class<? extends org.apereo.cas.authentication.Credential> clazz)  
      boolean supports​(org.apereo.cas.authentication.Credential credential)  
      • Methods inherited from interface org.apereo.cas.authentication.AuthenticationHandler

        getName, getOrder
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 factory
        order - the order
        httpClient - 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)