Example usage for org.apache.commons.httpclient.auth AuthScope getScheme

List of usage examples for org.apache.commons.httpclient.auth AuthScope getScheme

Introduction

In this page you can find the example usage for org.apache.commons.httpclient.auth AuthScope getScheme.

Prototype

public String getScheme() 

Source Link

Usage

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());
}