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
principalFactoryFields inherited from interface org.apereo.cas.authentication.AuthenticationHandler
SUCCESSFUL_AUTHENTICATION_HANDLERSFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionJcifsSpnegoAuthenticationHandler(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 TypeMethodDescriptionprotected org.apereo.cas.authentication.AuthenticationHandlerExecutionResultdoAuthentication(org.apereo.cas.authentication.Credential credential, org.apereo.cas.authentication.principal.Service service) protected org.apereo.cas.authentication.principal.PrincipalgetPrincipal(String name, boolean isNtlm) Gets the principal from the given name.booleanbooleansupports(org.apereo.cas.authentication.Credential credential) Methods inherited from class org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
authenticate, createHandlerResult, createHandlerResultMethods inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler
canEqual, equals, getCredentialSelectionPredicate, getName, getOrder, getPrincipalFactory, getServicesManager, getState, hashCode, setCredentialSelectionPredicate, setStateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apereo.cas.authentication.AuthenticationHandler
getName, getOrder, getStateMethods 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:
doAuthenticationin classorg.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler- Throws:
GeneralSecurityException
-
supports
public boolean supports(org.apereo.cas.authentication.Credential credential) -
supports
-
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 nameisNtlm- the is ntlm- Returns:
- the simple principal
-