com.jayway.restassured.authentication
Class PreemptiveAuthProvider

java.lang.Object
  extended by com.jayway.restassured.authentication.PreemptiveAuthProvider

public class PreemptiveAuthProvider
extends Object


Constructor Summary
PreemptiveAuthProvider()
           
 
Method Summary
 AuthenticationScheme basic(String userName, String password)
          Use preemptive http basic authentication.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreemptiveAuthProvider

public PreemptiveAuthProvider()
Method Detail

basic

public AuthenticationScheme 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.