Class LoginInfo
- java.lang.Object
-
- com.sun.appserv.management.client.prefs.LoginInfo
-
- All Implemented Interfaces:
Comparable<LoginInfo>
public final class LoginInfo extends Object implements 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(LoginInfo that)
boolean
equals(Object other)
String
getHost()
char[]
getPassword()
int
getPort()
String
getUser()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
LoginInfo
public LoginInfo(String host, int port, String user, char[] 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:
IllegalArgumentException
- if parameter contract is violated
-
-