|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthenticationSpecification
Specify an authentication scheme to use when sending a request.
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. |
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. |
Method Detail |
---|
RequestSpecification basic(String userName, String password)
userName
- The user name.password
- The password.
RequestSpecification digest(String userName, String password)
userName
- The user name.password
- The password.
RequestSpecification form(String userName, String password)
userName
- The user name.password
- The password.
RequestSpecification form(String userName, String password, FormAuthConfig config)
userName
- The user name.password
- The password.config
- The form authentication config
RequestSpecification certificate(String certURL, String password)
Class.getResource(String)
for how to get a URL from a resource on the classpath.
certURL
- URL to a JKS keystore where the certificate is stored.password
- password to decrypt the keystore
RequestSpecification oauth(String consumerKey, String consumerSecret, String accessToken, String secretToken)
consumerKey
- consumerSecret
- accessToken
- secretToken
-
PreemptiveAuthSpec preemptive()
RequestSpecification none()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |