|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sshtools.ui.swing.PasswordKey
public class PasswordKey
Represents a unique record stored in the password manager. The password keys uniqueness is derived from the protocol, scheme and host parts of password request. The user may choose to store the password against this key.
| Constructor Summary | |
|---|---|
PasswordKey(java.lang.String protocol,
java.lang.String scheme,
java.lang.String host,
java.lang.String username,
int port)
Creates a new PasswordKey object. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getHost()
Get the host part of the key |
int |
getPort()
Get the port part of the key |
java.lang.String |
getProtocol()
Get the protocol part of the key |
java.lang.String |
getScheme()
Get the scheme part of the key |
java.lang.String |
getUsername()
Get the username part of the key if applicable (null if not) |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PasswordKey(java.lang.String protocol,
java.lang.String scheme,
java.lang.String host,
java.lang.String username,
int port)
protocol - protocolscheme - schemehost - hostsusername - username if applicable (null if not)port - port if application (0 if not)| Method Detail |
|---|
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getProtocol()
public java.lang.String getHost()
public java.lang.String getScheme()
public int getPort()
public java.lang.String getUsername()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||