@PublicAPI public class ConnectionInfo extends Object implements Serializable
Constructor and Description |
---|
ConnectionInfo(String url,
String login,
String password,
File credentialFile,
boolean insecure) |
ConnectionInfo(String url,
String login,
String domain,
String password,
File credentialFile,
boolean insecure) |
Modifier and Type | Method and Description |
---|---|
File |
getCredentialFile() |
String |
getDomain() |
String |
getLogin() |
String |
getPassword() |
String |
getUrl() |
boolean |
isInsecure() |
static String |
parseDomain(String fullLogin)
Extract the Windows domain name from the full login
parseDomain("domain\\user") returns domain
parseDomain("user") returns null
|
static String |
parseLogin(String fullLogin)
Extract the user name from the full login
parseDomain("domain\\user") returns user
parseDomain("user") returns user
|
void |
setCredentialFile(File credentialFile) |
void |
setDomain(String domain) |
void |
setInsecure(boolean insecure) |
void |
setLogin(String login) |
void |
setPassword(String password) |
void |
setUrl(String url) |
public ConnectionInfo(String url, String login, String domain, String password, File credentialFile, boolean insecure)
url
- the REST server URLlogin
- the logindomain
- the user domainpassword
- the passwordcredentialFile
- path to a file containing encrypted credentialsinsecure
- if true the server certificate will not be verifiedpublic ConnectionInfo(String url, String login, String password, File credentialFile, boolean insecure)
url
- the REST server URLlogin
- the login, can be in the form domain_name\\user_namepassword
- the passwordcredentialFile
- path to a file containing encrypted credentialsinsecure
- if true the server certificate will not be verifiedpublic String getUrl()
public String getLogin()
public String getDomain()
public String getPassword()
public File getCredentialFile()
public boolean isInsecure()
public void setUrl(String url)
public void setLogin(String login)
public void setDomain(String domain)
public void setPassword(String password)
public void setCredentialFile(File credentialFile)
public void setInsecure(boolean insecure)
public static String parseDomain(String fullLogin)
fullLogin
- the login to parse