List of usage examples for org.apache.http.impl.auth NegotiateScheme NegotiateScheme
public NegotiateScheme()
From source file:org.echocat.jomon.net.http.client.HttpClientAuth.java
@Nonnull protected AuthScheme parseSchemeOf(@Nonnull Matcher matcher) { final String plainAuthScheme = matcher.group(4); final AuthScheme authScheme; if ("digest".equalsIgnoreCase(plainAuthScheme)) { authScheme = new DigestScheme(); } else if ("negotiate".equalsIgnoreCase(plainAuthScheme)) { // noinspection deprecation authScheme = new NegotiateScheme(); } else if ("basic".equalsIgnoreCase(plainAuthScheme) || isEmpty(plainAuthScheme)) { authScheme = new BasicScheme(); } else {/* ww w. j av a 2 s . c om*/ throw new IllegalArgumentException( "Unknown authScheme '" + plainAuthScheme + "' of: " + matcher.group()); } return authScheme; }