com.sun.jdmk.comm
Class AuthInfo

java.lang.Object
  |
  +--com.sun.jdmk.comm.AuthInfo
All Implemented Interfaces:
Cloneable

public class AuthInfo
extends Object
implements Cloneable

Defines the Authentication Information required by the adaptors for carrying out login/password authentication.

This class contains a cleartext password, so it should be used with care. In particular, it is not Serializable. If you subclass it to make it Serializable, be aware that this could result in cleartext passwords being saved to files or sent over the network.

Version:
1.10 04/10/02
Author:
Sun Microsystems, Inc

Constructor Summary
AuthInfo()
          Creates an authentication info object with a null login/password.
AuthInfo(String login, String password)
          Creates an authentication info object with a given login/password.
 
Method Summary
 Object clone()
          Clone this AuthInfo.
 String getLogin()
          Returns the value of the login property.
 String getPassword()
          Returns the value of the password property.
 void setLogin(String login)
          Sets the value of the login property.
 void setPassword(String password)
          Sets the value of the password property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthInfo

public AuthInfo()
Creates an authentication info object with a null login/password.


AuthInfo

public AuthInfo(String login,
                String password)
Creates an authentication info object with a given login/password.

Method Detail

getLogin

public String getLogin()
Returns the value of the login property.

Returns:
the value of the login property.

setLogin

public void setLogin(String login)
Sets the value of the login property.

Parameters:
login - The value to which the login property will be set.

getPassword

public String getPassword()
Returns the value of the password property.

Returns:
the value of the password property.

setPassword

public void setPassword(String password)
Sets the value of the password property.

Parameters:
password - The value to which the password property will be set.

clone

public Object clone()
Clone this AuthInfo. The cloning is done using Object.clone.

Overrides:
clone in class Object
See Also:
Object.clone()

JMX 1.2_8   2002.10.31_20:03:55_MET

Copyright 1999-2002 Sun Microsystems, Inc.   901 San Antonio Road Palo Alto, California, 94303, U.S.A.   All Rights Reserved.