com.sun.appserv.management.client.prefs
Class LoginInfo
java.lang.Object
com.sun.appserv.management.client.prefs.LoginInfo
- All Implemented Interfaces:
- java.lang.Comparable<LoginInfo>
public final class LoginInfo
- extends java.lang.Object
- implements java.lang.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 |
LoginInfo(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password)
Creates an Immutable instance of a LoginInfo from given 4-tuple. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LoginInfo
public LoginInfo(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password)
- 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:
java.lang.IllegalArgumentException - if parameter contract is violated
getHost
public java.lang.String getHost()
getPort
public int getPort()
getUser
public java.lang.String getUser()
getPassword
public java.lang.String getPassword()
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
compareTo
public int compareTo(LoginInfo that)
- Specified by:
compareTo in interface java.lang.Comparable<LoginInfo>
Copyright © 2012 GlassFish Community. All Rights Reserved.