Class Authentication

java.lang.Object
   |
   +----Authentication

public class Authentication
extends Object
The Authentication class helps identify which access rights a user has for a particular directory or file.


Variable Index

 o CurrentUser

Constructor Index

 o Authentication(User)

Method Index

 o CanDelete(String)
Determines if the user can delete files in this directory.
 o CanMove(String)
Determines if the user can move files in this directory.
 o CanRead(String)
Determines if the user can read files and directories in this directory.
 o CanRename(String)
Determines if the user can rename files in this directory.
 o CanRun(String)
Determines if the user can run files in this directory.
 o CanSee(String)
Determines if the user can see files and directories in this directory.
 o CanWrite(String)
Determines if the user can write a file in this directory.
 o IsLoggedOn()
Determines if the user is logged on correctly.

Variables

 o CurrentUser
 User CurrentUser

Constructors

 o Authentication
 public Authentication(User NewUser)

Methods

 o CanSee
 public boolean CanSee(String Dir)
Determines if the user can see files and directories in this directory.

Parameters:
Dir - The complete Unix style path to evaluate
 o CanRead
 public boolean CanRead(String Dir)
Determines if the user can read files and directories in this directory.

Parameters:
Dir - The complete Unix style path to evaluate
 o CanWrite
 public boolean CanWrite(String Dir)
Determines if the user can write a file in this directory.

Parameters:
Dir - The complete Unix style path to evaluate
 o CanDelete
 public boolean CanDelete(String Dir)
Determines if the user can delete files in this directory.

Parameters:
Dir - The complete Unix style path to evaluate
 o CanRename
 public boolean CanRename(String Dir)
Determines if the user can rename files in this directory.

Parameters:
Dir - The complete Unix style path to evaluate
 o CanMove
 public boolean CanMove(String Dir)
Determines if the user can move files in this directory. Note that the user must also have write access to the destination directory.

Parameters:
Dir - The complete Unix style path to evaluate
 o CanRun
 public boolean CanRun(String Dir)
Determines if the user can run files in this directory.

Parameters:
Dir - The complete Unix style path to evaluate
 o IsLoggedOn
 public boolean IsLoggedOn()
Determines if the user is logged on correctly.