org.exolab.jms.authentication
Class User

java.lang.Object
  |
  +--org.exolab.jms.authentication.User
All Implemented Interfaces:
java.io.Serializable

public class User
extends java.lang.Object
implements java.io.Serializable

This class represents a user within OpenJMS.

Version:
$Revision: 1.4 $ $Date: 2003/08/07 13:32:49 $
Author:
Knut Lerpold
See Also:
Serialized Form

Constructor Summary
User()
          Construct a new User
User(java.lang.String username, java.lang.String password)
          Construct a new User
 
Method Summary
 java.lang.String getPassword()
          Returns the user's password
 java.lang.String getUsername()
          Returns the user's name
 void setPassword(java.lang.String password)
          Sets the user's password
 void setUsername(java.lang.String username)
          Sets the user's name
 java.lang.String toString()
          Returns a stringified representation of this
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

public User()
Construct a new User

User

public User(java.lang.String username,
            java.lang.String password)
Construct a new User
Parameters:
username - the user's name
password - the user's password
Method Detail

getUsername

public java.lang.String getUsername()
Returns the user's name
Returns:
the user's name

setUsername

public void setUsername(java.lang.String username)
Sets the user's name
Parameters:
username - the user's name

getPassword

public java.lang.String getPassword()
Returns the user's password
Returns:
the user's password

setPassword

public void setPassword(java.lang.String password)
Sets the user's password
Parameters:
password - the user's password

toString

public java.lang.String toString()
Returns a stringified representation of this
Overrides:
toString in class java.lang.Object
Returns:
a stringified representation of this


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.