Class semper.certappl.UserList
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.certappl.UserList

java.lang.Object
   |
   +----semper.certappl.UserList

public class UserList
extends Object
Class UserList is a collection of SemperUsers in a list. For authentication purposes against CA server this class is needed from certification application.

Constructor Index

 o UserList()
Constructor of class UserList

Method Index

 o closeFile()
Closes a file.
 o doesExist(SemperUser)
This method checks if an object of class semperUser exists in a certain file which is already opened.
 o openFile(String, String)
Opens a file.
 o sizeOfFile(File)
Finds the total size of the file.

Constructors

 o UserList
  public UserList()
Constructor of class UserList

Methods

 o openFile
  public void openFile(String filename,
                       String mode) throws IOException
Opens a file.
Parameters:
filename - = is the name of the file.
mode - = could be read and/or write
Throws: IOException
if a file couldn't be opened.
See Also:
closeFile
 o closeFile
  public void closeFile() throws IOException
Closes a file.
Throws: IOException
if a opened file couldn't be closed.
See Also:
openFile
 o doesExist
  public boolean doesExist(SemperUser sempuser)
This method checks if an object of class semperUser exists in a certain file which is already opened.
Parameters:
sempuser, - semperuser is an object of class SemperUser which should be checked if there is the same enrty of it in the file.
Returns:
boolean value
Throws: IOException
when enf of file is reached without finding any proper entry.
 o sizeOfFile
  public long sizeOfFile(File file)
Finds the total size of the file.
Parameters:
file - = File its size should be determined.

All Packages  Class Hierarchy  This Package  Previous  Next  Index