All Packages Class Hierarchy This Package Previous Next Index
Class jnfs.FileSystemUser
java.lang.Object
|
+----java.security.Identity
|
+----jnfs.FileSystemUser
- public class FileSystemUser
- extends Identity
A FileSystemUser is pairs a username and public key and adds
functionality for caching session tokens and challenges.
- Version:
- $Id: FileSystemUser.java,v 1.12 1997/05/20 17:59:39 mjr Exp $
- Author:
- Michael John Radwin
-
FileSystemUser()
- Constructor for serialization only.
-
FileSystemUser(String)
- Constructs a FileSystemUser with the specified name and no scope.
-
FileSystemUser(String, IdentityScope)
- Constructs a FileSystemUser with the specified name and scope.
-
addChallenge(Challenge)
-
Adds the specified Challenge to this FileSystemUser's cache of
challenges.
-
addToken(Token)
- Adds the specified Token to this FileSystemUser's cache of tokens.
-
challenges()
- Returns an Enumeration of the challenges stored for this user
-
removeChallenge(Challenge)
- Removes the specified Challenge if it is stored in this FileSystemUser.
-
removeToken(Token)
- Removes the specified Token if it is stored in this FileSystemUser.
-
tokens()
- Returns an Enumeration of the tokens stored for this user
FileSystemUser
protected FileSystemUser()
- Constructor for serialization only.
FileSystemUser
public FileSystemUser(String name,
IdentityScope scope) throws KeyManagementException
- Constructs a FileSystemUser with the specified name and scope.
- Parameters:
- name - the identity name.
- scope - the scope of the identity.
- Throws: KeyManagementException
- if there is already
an identity with the same name in the scope.
FileSystemUser
public FileSystemUser(String name)
- Constructs a FileSystemUser with the specified name and no scope.
- Parameters:
- name - the identity name.
tokens
public Enumeration tokens()
- Returns an Enumeration of the tokens stored for this user
challenges
public Enumeration challenges()
- Returns an Enumeration of the challenges stored for this user
addToken
public void addToken(Token tok)
- Adds the specified Token to this FileSystemUser's cache of tokens.
- Parameters:
- token - the Token to be added.
addChallenge
public void addChallenge(Challenge chall)
- Adds the specified Challenge to this FileSystemUser's cache of
challenges.
- Parameters:
- challenge - the Challenge to be added.
removeToken
public boolean removeToken(Token tok)
- Removes the specified Token if it is stored in this FileSystemUser.
- Parameters:
- token - the Token to be removed.
- Returns:
-
true
if the argument was a stored token;
false
otherwise.
removeChallenge
public boolean removeChallenge(Challenge chall)
- Removes the specified Challenge if it is stored in this FileSystemUser.
- Parameters:
- challenge - the Challenge to be removed.
- Returns:
-
true
if the argument was a stored challenge;
false
otherwise.
All Packages Class Hierarchy This Package Previous Next Index