Class LoginInfo
java.lang.Object
com.sun.appserv.management.client.prefs.LoginInfo
- All Implemented Interfaces:
Comparable<LoginInfo>
An immutable class that represents an arbitrary LoginInfo for Appserver Administration Client. A LoginInfo
is specific to an admin host and admin port. Thus, with this scheme, there can be
at the most one LoginInfo for an operating system user of Appserver, for a given admin host
and admin port.
- Since:
- Appserver 9.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LoginInfo
Creates an Immutable instance of a LoginInfo from given 4-tuple. The host, user and password may not be null. The port may not be a negative integer.- Parameters:
host- String representing hostport- integer representing portuser- String representing userpassword- String representing password- Throws:
IllegalArgumentException- if parameter contract is violated
-
-
Method Details
-
getHost
-
getPort
public int getPort() -
getUser
-
getPassword
public char[] getPassword() -
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<LoginInfo>
-