Class JcifsSpnegoAuthenticationHandler

java.lang.Object
org.apereo.cas.authentication.AbstractAuthenticationHandler
org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
org.apereo.cas.support.spnego.authentication.handler.support.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(String name, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, List<jcifs.spnego.Authentication> authentications, boolean principalWithDomainName, boolean ntlmAllowed, Integer order)
     
  • Method Summary

    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(String name, boolean isNtlm)
    Gets the principal from the given name.
    boolean
    supports(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 Details

    • JcifsSpnegoAuthenticationHandler

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

    • doAuthentication

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

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

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

      protected org.apereo.cas.authentication.principal.Principal getPrincipal(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