public class ProxyCredential extends Credential
Modifier and Type | Field and Description |
---|---|
protected String |
host
The hostname of the server
|
protected int |
port
the port where the server runs
|
dataObjects, notes, password, username
Constructor and Description |
---|
ProxyCredential(String host,
int port,
String username,
String password)
Creates a
ProxyCredential . |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns a clone of this context.
|
boolean |
equals(Object obj) |
String |
getHost()
Returns the host of the MyProxy server.
|
int |
getPort()
Gets the port of the MyProxy server.
|
int |
hashCode() |
void |
setHost(String host)
Sets the host of the MyProxy server.
|
void |
setPort(int port)
Sets the port of the MyProxy server.
|
String |
toString() |
addNote, containsNoteKey, getDataObject, getNoteValue, getPassword, getUsername, isValidFor, putDataObject, removeDataObject, setPassword, setUsername
protected String host
protected int port
public ProxyCredential(String host, int port, String username, String password)
ProxyCredential
.host
- the hostname of the myproxy serverport
- the port where the myproxy server runs, -1 for the default
portusername
- the username to use to connect to the myproxy serverpassword
- the password to use to connect to the myproxy serverpublic Object clone() throws CloneNotSupportedException
Credential
clone
in class Credential
CloneNotSupportedException
public boolean equals(Object obj)
equals
in class Credential
public String getHost()
public void setHost(String host)
host
- the new host of the MyProxy serverpublic int getPort()
public void setPort(int port)
port
- the new port of the MyProxy serverpublic int hashCode()
hashCode
in class Credential