类org.apache.http.impl.auth.NTLMScheme源码实例Demo

下面列出了怎么用org.apache.http.impl.auth.NTLMScheme的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: fess   文件: WebAuthentication.java
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;
}
 
源代码2 项目: pushfish-android   文件: NTLMSchemeFactory.java
public AuthScheme newInstance(HttpParams params) {
    return new NTLMScheme(new JCIFSEngine());
}
 
源代码3 项目: pushfish-android   文件: NTLMSchemeFactory.java
public AuthScheme newInstance(HttpParams params) {
    return new NTLMScheme(new JCIFSEngine());
}
 
源代码4 项目: davmail   文件: JCIFSNTLMSchemeFactory.java
@Override
public AuthScheme create(HttpContext context) {
    return new NTLMScheme(new JCIFSEngine());
}
 
源代码5 项目: Pushjet-Android   文件: NTLMSchemeFactory.java
public AuthScheme newInstance(HttpParams params) {
    return new NTLMScheme(new JCIFSEngine());
}
 
源代码6 项目: Pushjet-Android   文件: NTLMSchemeFactory.java
public AuthScheme newInstance(HttpParams params) {
    return new NTLMScheme(new JCIFSEngine());
}
 
源代码7 项目: iaf   文件: WebServiceNtlmSender.java
public AuthScheme newInstance(final HttpParams params) {
	return new NTLMScheme(new JCIFSEngine());
}
 
 类所在包
 同包方法