com.jayway.restassured.specification
Interface PreemptiveAuthSpec

All Known Implementing Classes:
PreemptiveAuthSpecImpl

public interface PreemptiveAuthSpec

Specify a preemptive authentication scheme to use when sending a request.


Method Summary
 RequestSpecification basic(String userName, String password)
          Use preemptive http basic authentication.
 

Method Detail

basic

RequestSpecification basic(String userName,
                           String password)
Use preemptive http basic authentication. This means that the authentication details are sent in the request header regardless if the server has challenged for authentication or not.

Parameters:
userName - The user name.
password - The password.
Returns:
The Request specification


Copyright © 2010-2011. All Rights Reserved.