org.apache.http.impl.auth.NTLMScheme Java Examples

The following examples show how to use org.apache.http.impl.auth.NTLMScheme. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebAuthentication.java    From fess with Apache License 2.0 6 votes vote down vote up
private AuthScheme getAuthScheme() {
    final String scheme = getProtocolScheme();
    if (Constants.BASIC.equals(scheme)) {
        return new BasicScheme();
    } else if (Constants.DIGEST.equals(scheme)) {
        return new DigestScheme();
    } else if (Constants.NTLM.equals(scheme)) {
        final Properties props = new Properties();
        getWebConfig().getConfigParameterMap(ConfigName.CONFIG).entrySet().stream()
                .filter(e -> e.getKey().startsWith(Config.JCIFS_PREFIX)).forEach(e -> {
                    props.setProperty(e.getKey(), e.getValue());
                });
        return new NTLMScheme(new JcifsEngine(props));
    } else if (Constants.FORM.equals(scheme)) {
        final Map<String, String> parameterMap = ParameterUtil.parse(getParameters());
        return new FormScheme(parameterMap);
    }
    return null;
}
 
Example #2
Source File: NTLMSchemeFactory.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public AuthScheme newInstance(HttpParams params) {
    return new NTLMScheme(new JCIFSEngine());
}
 
Example #3
Source File: NTLMSchemeFactory.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public AuthScheme newInstance(HttpParams params) {
    return new NTLMScheme(new JCIFSEngine());
}
 
Example #4
Source File: JCIFSNTLMSchemeFactory.java    From davmail with GNU General Public License v2.0 4 votes vote down vote up
@Override
public AuthScheme create(HttpContext context) {
    return new NTLMScheme(new JCIFSEngine());
}
 
Example #5
Source File: NTLMSchemeFactory.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public AuthScheme newInstance(HttpParams params) {
    return new NTLMScheme(new JCIFSEngine());
}
 
Example #6
Source File: NTLMSchemeFactory.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public AuthScheme newInstance(HttpParams params) {
    return new NTLMScheme(new JCIFSEngine());
}
 
Example #7
Source File: WebServiceNtlmSender.java    From iaf with Apache License 2.0 4 votes vote down vote up
public AuthScheme newInstance(final HttpParams params) {
	return new NTLMScheme(new JCIFSEngine());
}