Example usage for org.apache.http.auth UsernamePasswordCredentials UsernamePasswordCredentials

List of usage examples for org.apache.http.auth UsernamePasswordCredentials UsernamePasswordCredentials

Introduction

In this page you can find the example usage for org.apache.http.auth UsernamePasswordCredentials UsernamePasswordCredentials.

Prototype

public UsernamePasswordCredentials(final String userName, final String password) 

Source Link

Document

The constructor with the username and password arguments.

Usage

From source file:org.eclipse.lyo.testsuite.server.oslcv1tests.QueryTests.java

@Before
public void setup() throws IOException, ParserConfigurationException, SAXException, XPathException {
    Properties setupProps = SetupProperties.setup(null);
    if (setupProps.getProperty("testBackwardsCompatability") != null
            && Boolean.parseBoolean(setupProps.getProperty("testBackwardsCompatability"))) {
        setupProps = SetupProperties.setup(setupProps.getProperty("version1Properties"));
    }// w w  w. j  ava2 s .co  m
    baseUrl = setupProps.getProperty("baseUri");
    String userId = setupProps.getProperty("userId");
    String pw = setupProps.getProperty("pw");
    basicCreds = new UsernamePasswordCredentials(userId, pw);
    queryProperty = setupProps.getProperty("queryEqualityProperty");
    queryPropertyValue = setupProps.getProperty("queryEqualityValue");
    queryComparisonProperty = setupProps.getProperty("queryComparisonProperty");
    queryComparisonValue = setupProps.getProperty("queryComparisonValue");
    additionalParameters = setupProps.getProperty("queryAdditionalParameters");
    fullTextSearchTerm = setupProps.getProperty("fullTextSearchTerm");
}