use of org.apereo.cas.support.spnego.authentication.handler.support.JcifsSpnegoAuthenticationHandler in project cas by apereo.
the class SpnegoConfiguration method spnegoHandler.
@Bean
@RefreshScope
public AuthenticationHandler spnegoHandler() {
final SpnegoProperties spnegoProperties = casProperties.getAuthn().getSpnego();
final JcifsSpnegoAuthenticationHandler h = new JcifsSpnegoAuthenticationHandler(spnegoProperties.getName(), servicesManager, spnegoPrincipalFactory(), spnegoAuthentication(), spnegoProperties.isPrincipalWithDomainName(), spnegoProperties.isNtlmAllowed());
h.setAuthentication(spnegoAuthentication());
h.setPrincipalWithDomainName(spnegoProperties.isPrincipalWithDomainName());
h.setNTLMallowed(spnegoProperties.isNtlmAllowed());
return h;
}
Aggregations