public class Credentials extends Object implements Serializable
Credentials bean used to create
org.apache.commons.httpclient.UsernamePasswordCredentials
and org.apache.commons.httpclient.auth.AuthScope
.
Note: User authorization scope's host, authorization scope's port, name, password are both required.
Modifier and Type | Field and Description |
---|---|
protected String |
authScopeHost |
protected int |
authScopePort |
protected String |
password |
protected String |
userName |
Constructor and Description |
---|
Credentials()
Constructor
|
Credentials(String authScopeHost,
int authScopePort,
String userName,
String password)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getAuthScopeHost()
Gets authorization scope's host.
|
int |
getAuthScopePort()
Gets authorization scope's port.
|
String |
getPassword()
Gets password.
|
String |
getUserName()
Gets user name.
|
void |
setAuthScopeHost(String autoScopeHost)
Sets authorization scope's host.
|
void |
setAuthScopePort(int authScopePort)
Sets authorization scope's port.
|
void |
setPassword(String password)
Sets password.
|
void |
setUserName(String userName)
Sets user name.
|
String |
toString()
Returns a string representation of the object.
|
protected String authScopeHost
protected int authScopePort
protected String userName
protected String password
public String getAuthScopeHost()
public void setAuthScopeHost(String autoScopeHost)
public int getAuthScopePort()
public void setAuthScopePort(int authScopePort)
public String getUserName()
public void setUserName(String userName)
public String getPassword()
public void setPassword(String password)
Copyright © 2008-2013 Spring by Example. All Rights Reserved.