All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tc.message.OpenDatabaseMessage

java.lang.Object
   |
   +----connection.Message
           |
           +----tc.message.OpenDatabaseMessage

public class OpenDatabaseMessage
extends Message
OpenDatabaseMessage is a specialized message for sending a request for a database connection.

Version:
0.30, 1998/04/01
Author:
FRED development team, Antti Viljamaa, Jukka Viljamaa
See Also:
Message

Variable Index

 o passwd
The user's (encrypted) password as a byte array.
 o userID
The user id (user name) as a string.

Constructor Index

 o OpenDatabaseMessage(byte, String, byte[])
Initializes a new OpenDatabaseMessage object with the given message id, user id, and password.
 o OpenDatabaseMessage(String, byte[])
Initializes a new OpenDatabaseMessage object with the given user id and password.

Method Index

 o getPasswd()
Gets the user's (encrypted) password as a byte array.
 o getUserID()
Sets the user id (user name) as a string.
 o setPasswd(byte[])
Sets the user's (encrypted) password as a byte array.
 o setUserID(String)
Sets the user id (user name) as a string.

Variables

 o passwd
 private byte passwd[]
The user's (encrypted) password as a byte array.

 o userID
 private String userID
The user id (user name) as a string.

Constructors

 o OpenDatabaseMessage
 public OpenDatabaseMessage(byte id,
                            String userID,
                            byte passwd[])
Initializes a new OpenDatabaseMessage object with the given message id, user id, and password.

Parameters:
id - The optional message id. The user can use this field to separate different messages that use this same class.
userID - The user id (user name) as a string.
password - The user's (encrypted) password as a byte array.
 o OpenDatabaseMessage
 public OpenDatabaseMessage(String userID,
                            byte passwd[])
Initializes a new OpenDatabaseMessage object with the given user id and password.

Parameters:
userID - The user id (user name) as a string.
password - The user's (encrypted) password as a byte array.

Methods

 o getPasswd
 public byte[] getPasswd()
Gets the user's (encrypted) password as a byte array.

 o getUserID
 public String getUserID()
Sets the user id (user name) as a string.

 o setPasswd
 public void setPasswd(byte pw[])
Sets the user's (encrypted) password as a byte array.

 o setUserID
 public void setUserID(String s)
Sets the user id (user name) as a string.


All Packages  Class Hierarchy  This Package  Previous  Next  Index