List of usage examples for org.apache.commons.httpclient.auth AuthScope getScheme
public String getScheme()
From source file:com.gargoylesoftware.htmlunit.DefaultCredentialsProvider.java
/** * @param scheme the request scheme for which Credentials are asked * @param scope the configured authorization scope * @return <code>true</code> if the scope's scheme matches the provided one *//* w w w . ja v a 2 s . c o m*/ protected boolean matchScheme(final AuthScope scope, final AuthScheme scheme) { return scope.getScheme() == AuthScope.ANY_SCHEME || scope.getScheme().equals(scheme.getSchemeName()); }