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

com.jaeksoft.searchlib.util.cifs.NTLMSchemeFactory Maven / Gradle / Ivy

Go to download

OpenSearchServer is a powerful, enterprise-class, search engine program. Using the web user interface, the crawlers (web, file, database, ...) and the REST/RESTFul API you will be able to integrate quickly and easily advanced full-text search capabilities in your application. OpenSearchServer runs on Windows and Linux/Unix/BSD.

The newest version!
/**
 * Free source code from
 * From http://hc.apache.org/httpcomponents-client-4.3.x/ntlm.html
 */
package com.jaeksoft.searchlib.util.cifs;

import org.apache.http.auth.AuthScheme;
import org.apache.http.auth.AuthSchemeProvider;
import org.apache.http.impl.auth.NTLMScheme;
import org.apache.http.protocol.HttpContext;

public class NTLMSchemeFactory implements AuthSchemeProvider {

	@Override
	public AuthScheme create(final HttpContext context) {
		return new NTLMScheme(new JCIFSEngine());
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy