Package com.sun.enterprise.admin.util
Class AuthenticationInfo
- java.lang.Object
-
- com.sun.enterprise.admin.util.AuthenticationInfo
-
public final class AuthenticationInfo extends Object
A class that holds the user and password for the connection to the server. Used by the HttpConnectorAddress class. Instances of this class are immutable.
-
-
Constructor Summary
Constructors Constructor Description AuthenticationInfo(String user, char[] password)
AuthenticationInfo(String user, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPassword()
Returns the password in clear text.String
getUser()
Returns the user name.String
toString()
-
-
-
Constructor Detail
-
AuthenticationInfo
public AuthenticationInfo(String user, String password)
- Parameters:
user
- the user name for the connectionpassword
- the clear text password for the connection
-
AuthenticationInfo
public AuthenticationInfo(String user, char[] password)
- Parameters:
user
- the user name for the connectionpassword
- the clear text password for the connection
-
-