public class FormAuthInfo extends AuthInfo
AuthInfo.AuthenticationTypeauthenticationType, host, httpMethod, loginTarget, password, port, protocol, username| Constructor and Description |
|---|
FormAuthInfo(String username,
String password,
String loginUrl,
String usernameFormStr,
String passwordFormStr)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPasswordFormStr() |
String |
getUsernameFormStr() |
void |
setPasswordFormStr(String passwordFormStr) |
void |
setUsernameFormStr(String usernameFormStr) |
getAuthenticationType, getHost, getHttpMethod, getLoginTarget, getPassword, getPort, getProtocol, getUsername, setAuthenticationType, setHost, setHttpMethod, setLoginTarget, setPassword, setPort, setProtocol, setUsernamepublic FormAuthInfo(String username, String password, String loginUrl, String usernameFormStr, String passwordFormStr) throws MalformedURLException
username - Username to login withpassword - Password to login withloginUrl - Full login URL, starting with "http"... ending with the full URLusernameFormStr - "Name" attribute of the username form fieldpasswordFormStr - "Name" attribute of the password form fieldMalformedURLException - Make sure your URL is validpublic String getUsernameFormStr()
public void setUsernameFormStr(String usernameFormStr)
usernameFormStr - username html "name" form attributepublic String getPasswordFormStr()
public void setPasswordFormStr(String passwordFormStr)
passwordFormStr - password html "name" form attributeCopyright © 2015. All rights reserved.