|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jayway.restassured.internal.AuthenticationSpecificationImpl
public class AuthenticationSpecificationImpl
| Constructor Summary | |
|---|---|
AuthenticationSpecificationImpl(RequestSpecification requestSpecification)
|
|
| Method Summary | |
|---|---|
RequestSpecification |
basic(String userName,
String password)
Use http basic authentication. |
RequestSpecification |
certificate(String certURL,
String password)
Sets a certificate to be used for SSL authentication. |
RequestSpecification |
digest(String userName,
String password)
Use http digest authentication. |
RequestSpecification |
form(String userName,
String password)
Use form authentication. |
RequestSpecification |
form(String userName,
String password,
FormAuthConfig config)
Use form authentication with the supplied configuration. |
groovy.lang.MetaClass |
getMetaClass()
|
Object |
getProperty(String property)
|
Object |
invokeMethod(String method,
Object arguments)
|
RequestSpecification |
none()
Explicitly state that you don't which to use any authentication in this request. |
RequestSpecification |
oauth(String consumerKey,
String consumerSecret,
String accessToken,
String secretToken)
Excerpt from the HttpBuilder docs: OAuth sign the request. |
PreemptiveAuthSpec |
preemptive()
Returns the preemptive authentication view. |
void |
setMetaClass(groovy.lang.MetaClass mc)
|
void |
setProperty(String property,
Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationSpecificationImpl(RequestSpecification requestSpecification)
| Method Detail |
|---|
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObject
public Object invokeMethod(String method,
Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObject
public void setProperty(String property,
Object value)
setProperty in interface groovy.lang.GroovyObject
public RequestSpecification basic(String userName,
String password)
AuthenticationSpecification
basic in interface AuthenticationSpecificationuserName - The user name.password - The password.
public RequestSpecification digest(String userName,
String password)
AuthenticationSpecification
digest in interface AuthenticationSpecificationuserName - The user name.password - The password.
public RequestSpecification certificate(String certURL,
String password)
AuthenticationSpecificationClass.getResource(String)
for how to get a URL from a resource on the classpath.
certificate in interface AuthenticationSpecificationcertURL - URL to a JKS keystore where the certificate is stored.password - password to decrypt the keystore
public RequestSpecification oauth(String consumerKey,
String consumerSecret,
String accessToken,
String secretToken)
AuthenticationSpecification
oauth in interface AuthenticationSpecificationpublic RequestSpecification none()
AuthenticationSpecification
none in interface AuthenticationSpecificationpublic PreemptiveAuthSpec preemptive()
AuthenticationSpecification
preemptive in interface AuthenticationSpecification
public RequestSpecification form(String userName,
String password)
AuthenticationSpecification
form in interface AuthenticationSpecificationuserName - The user name.password - The password.
public RequestSpecification form(String userName,
String password,
FormAuthConfig config)
AuthenticationSpecification
form in interface AuthenticationSpecificationuserName - The user name.password - The password.config - The form authentication config
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||