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.AbstractPreAndPostProcessingAuthenticationHandlerImplementation of an AuthenticationHandler for SPNEGO supports. This Handler support both NTLM and Kerberos. NTLM is disabled by default.- Since:
- 3.1
-
-
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.AuthenticationHandlerExecutionResultdoAuthentication(org.apereo.cas.authentication.Credential credential, org.apereo.cas.authentication.principal.Service service)protected org.apereo.cas.authentication.principal.PrincipalgetPrincipal(java.lang.String name, boolean isNtlm)Gets the principal from the given name.booleansupports(java.lang.Class<? extends org.apereo.cas.authentication.Credential> clazz)booleansupports(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
-
-
-
-
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:
doAuthenticationin classorg.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 nameisNtlm- the is ntlm- Returns:
- the simple principal
-
-