org.opensha.refFaultParamDb.gui.infotools
Class SessionInfo

java.lang.Object
  extended by org.opensha.refFaultParamDb.gui.infotools.SessionInfo

public class SessionInfo
extends Object

Title: SessionInfo.java

Description: Saves the information about the current session like username, password, contributorId, etc.

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
SessionInfo()
           
 
Method Summary
static Contributor getContributor()
          Get the contributor info
static String getEncryptedPassword()
          Get the encrypted password
static String getPassword()
          Get the password
static String getUserName()
          Get the username to be used for DB connection
static void setContributorInfo()
          Get the contributor info from database based on username and password
static void setPassword(String password)
          Set the password for making the database connection
static void setUserName(String userName)
          Set the username typed by the user in the login window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionInfo

public SessionInfo()
Method Detail

setUserName

public static void setUserName(String userName)
Set the username typed by the user in the login window. This username is used for db connection

Parameters:
userName -

getUserName

public static String getUserName()
Get the username to be used for DB connection

Returns:

setPassword

public static void setPassword(String password)
Set the password for making the database connection

Parameters:
password -

getPassword

public static String getPassword()
Get the password

Returns:

getEncryptedPassword

public static String getEncryptedPassword()
Get the encrypted password

Returns:

setContributorInfo

public static void setContributorInfo()
Get the contributor info from database based on username and password


getContributor

public static Contributor getContributor()
Get the contributor info

Returns: