All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.springboot.httpclient.auth.cifs.autoconfigure.NtlmAuthenticationAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
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