Class JcifsSpnegoAuthenticationHandler

  • All Implemented Interfaces:
    org.apereo.cas.authentication.AuthenticationHandler, org.apereo.cas.authentication.PrePostAuthenticationHandler, org.springframework.core.Ordered

    @NotThreadSafe
    public class JcifsSpnegoAuthenticationHandler
    extends org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
    Implementation of an AuthenticationHandler for SPNEGO supports. This Handler support both NTLM and Kerberos. NTLM is disabled by default.
    Since:
    3.1
    • Field Summary

      • Fields inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler

        principalFactory
      • Fields inherited from interface org.apereo.cas.authentication.AuthenticationHandler

        SUCCESSFUL_AUTHENTICATION_HANDLERS
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      JcifsSpnegoAuthenticationHandler​(java.lang.String name, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, java.util.List<jcifs.spnego.Authentication> authentications, boolean principalWithDomainName, boolean ntlmAllowed, java.lang.Integer order)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apereo.cas.authentication.AuthenticationHandlerExecutionResult doAuthentication​(org.apereo.cas.authentication.Credential credential, org.apereo.cas.authentication.principal.Service service)  
      protected org.apereo.cas.authentication.principal.Principal getPrincipal​(java.lang.String name, boolean isNtlm)
      Gets the principal from the given name.
      boolean supports​(java.lang.Class<? extends org.apereo.cas.authentication.Credential> clazz)  
      boolean supports​(org.apereo.cas.authentication.Credential credential)  
      • Methods inherited from class org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler

        authenticate, createHandlerResult, createHandlerResult
      • Methods inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler

        canEqual, equals, getCredentialSelectionPredicate, getName, getOrder, getPrincipalFactory, getServicesManager, getState, hashCode, setCredentialSelectionPredicate, setState
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.authentication.AuthenticationHandler

        getName, getOrder, getState
      • Methods inherited from interface org.apereo.cas.authentication.PrePostAuthenticationHandler

        postAuthenticate, preAuthenticate
    • Constructor Detail

      • JcifsSpnegoAuthenticationHandler

        public JcifsSpnegoAuthenticationHandler​(java.lang.String name,
                                                org.apereo.cas.services.ServicesManager servicesManager,
                                                org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
                                                java.util.List<jcifs.spnego.Authentication> authentications,
                                                boolean principalWithDomainName,
                                                boolean ntlmAllowed,
                                                java.lang.Integer order)
    • Method Detail

      • doAuthentication

        protected org.apereo.cas.authentication.AuthenticationHandlerExecutionResult doAuthentication​(org.apereo.cas.authentication.Credential credential,
                                                                                                      org.apereo.cas.authentication.principal.Service service)
                                                                                               throws java.security.GeneralSecurityException
        Specified by:
        doAuthentication in class org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
        Throws:
        java.security.GeneralSecurityException
      • supports

        public boolean supports​(org.apereo.cas.authentication.Credential credential)
      • supports

        public boolean supports​(java.lang.Class<? extends org.apereo.cas.authentication.Credential> clazz)
      • getPrincipal

        protected org.apereo.cas.authentication.principal.Principal getPrincipal​(java.lang.String name,
                                                                                 boolean isNtlm)
        Gets the principal from the given name. The principal is created by the factory instance.
        Parameters:
        name - the name
        isNtlm - the is ntlm
        Returns:
        the simple principal