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.
-
CurrentUser
-
-
Authentication(User)
-
-
CanDelete(String)
- Determines if the user can delete files in this directory.
-
CanMove(String)
- Determines if the user can move files in this directory.
-
CanRead(String)
- Determines if the user can read files and directories in this directory.
-
CanRename(String)
- Determines if the user can rename files in this directory.
-
CanRun(String)
- Determines if the user can run files in this directory.
-
CanSee(String)
- Determines if the user can see files and directories in this directory.
-
CanWrite(String)
- Determines if the user can write a file in this directory.
-
IsLoggedOn()
- Determines if the user is logged on correctly.
CurrentUser
User CurrentUser
Authentication
public Authentication(User NewUser)
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
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
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
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
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
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
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
IsLoggedOn
public boolean IsLoggedOn()
- Determines if the user is logged on correctly.