com.sshtools.ui.swing
Class PasswordKey

java.lang.Object
  extended by com.sshtools.ui.swing.PasswordKey
All Implemented Interfaces:
java.lang.Comparable

public class PasswordKey
extends java.lang.Object
implements java.lang.Comparable

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

PasswordKey

public PasswordKey(java.lang.String protocol,
                   java.lang.String scheme,
                   java.lang.String host,
                   java.lang.String username,
                   int port)
Creates a new PasswordKey object.

Parameters:
protocol - protocol
scheme - scheme
host - hosts
username - username if applicable (null if not)
port - port if application (0 if not)
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getProtocol

public java.lang.String getProtocol()
Get the protocol part of the key

Returns:
protocol

getHost

public java.lang.String getHost()
Get the host part of the key

Returns:
host

getScheme

public java.lang.String getScheme()
Get the scheme part of the key

Returns:
scheme

getPort

public int getPort()
Get the port part of the key

Returns:
port

getUsername

public java.lang.String getUsername()
Get the username part of the key if applicable (null if not)

Returns:
username


Copyright © 2003-2009 SSHTOOLS LTD. All Rights Reserved.