com.maplesoft.client
Class UserInfo

java.lang.Object
  |
  +--com.maplesoft.client.UserInfo

public class UserInfo
extends java.lang.Object

Class to hold the necessary User Information. i.e. Username and Password


Constructor Summary
UserInfo()
          Default Constructor - the user and password are empty strings
UserInfo(java.lang.String sUser, java.lang.String sPassword)
          Create a Userinfo for the specified Username and Password
 
Method Summary
 void destroy()
          Clears out any user info
static UserInfo getDefaultUser()
          Return a UserInfo object representing the default user
 java.lang.String getPassword()
          Returns the password for the user in this object
 java.lang.String getUser()
          Returns the username for this object
static void setDefaultUser(java.lang.String sUser, java.lang.String sPassword)
          Creates a default user to be used when no user is specified
static void setDefaultUser(UserInfo userinfo)
          Creates a default user to be used when no user is specified
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserInfo

public UserInfo()
Default Constructor - the user and password are empty strings

UserInfo

public UserInfo(java.lang.String sUser,
                java.lang.String sPassword)
Create a Userinfo for the specified Username and Password
Parameters:
sUser - the username
sPassword - password for the user
Method Detail

getUser

public java.lang.String getUser()
Returns the username for this object
Returns:
a string representing the username

getPassword

public java.lang.String getPassword()
Returns the password for the user in this object
Returns:
a string representing the password

destroy

public void destroy()
Clears out any user info

setDefaultUser

public static void setDefaultUser(UserInfo userinfo)
Creates a default user to be used when no user is specified
Parameters:
userinfo - - a UserInfo object representing the default user

setDefaultUser

public static void setDefaultUser(java.lang.String sUser,
                                  java.lang.String sPassword)
Creates a default user to be used when no user is specified
Parameters:
sUser - the username
sPassword - the user's password

getDefaultUser

public static UserInfo getDefaultUser()
Return a UserInfo object representing the default user
Returns:
the default user or NULL is none is defined