io.github.springboot.httpclient.auth.cifs.autoconfigure.NtlmAuthenticationAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-httpclient-security-ntlm Show documentation
Show all versions of spring-boot-starter-httpclient-security-ntlm Show documentation
Spring Boot starter for ntlm jcifs and httpClient integration
package io.github.springboot.httpclient.auth.cifs.autoconfigure;
import org.apache.http.client.config.AuthSchemes;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import io.github.springboot.httpclient.auth.cifs.JCIFSNTLMSchemeFactory;
import io.github.springboot.httpclient.core.internal.NamedAuthSchemeProvider;
@Configuration
public class NtlmAuthenticationAutoConfiguration {
@Bean
@ConditionalOnProperty(name = "httpclient.core.auth.ntlm.enabled", havingValue = "true", matchIfMissing = true)
public NamedAuthSchemeProvider jCifsNtlmSchemeFactory() {
return new NamedAuthSchemeProvider(AuthSchemes.NTLM, new JCIFSNTLMSchemeFactory());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy