public class AuthUtils extends Object
Modifier and Type | Method and Description |
---|---|
static HttpAuthenticator |
prepareAuthentication(String username,
String password,
boolean preemptive,
String... endpoints)
Prepares an authenticator that may use simple authentication
|
static HttpAuthenticator |
prepareAuthenticator(String username,
String password,
boolean preemptive,
String formUrl,
String formUserField,
String formPwdField,
String... endpoints)
Prepares an authenticator that may use simple/form based authentication
|
public static HttpAuthenticator prepareAuthenticator(String username, String password, boolean preemptive, String formUrl, String formUserField, String formPwdField, String... endpoints)
username
- User namepassword
- Passwordpreemptive
- Preemptive auth?formUrl
- Form login URLformUserField
- Form user fieldformPwdField
- Form password fieldendpoints
- Endpoints to configure authentication forpublic static HttpAuthenticator prepareAuthentication(String username, String password, boolean preemptive, String... endpoints)
username
- User namepassword
- Passwordpreemptive
- Preemptive auth?endpoints
- Endpoints to configure authentication forCopyright © 2015. All rights reserved.