com.sun.jdmk.comm
Class AuthInfo

java.lang.Object
  extended by 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.


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()

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.