All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface jnfs.security.Authentication

public interface interface Authentication
The server-side Authentication issues challenges and verifies if they have been met successfully. For efficiency, the file system may also ask the Authentication to issue tokens for a particular user. Tokens (like challenges) are stored with user information upon generation.

Version:
$Id: Authentication.java,v 1.17 1997/05/20 19:16:20 mjr Exp $
Author:
Michael John Radwin

Method Index

 o generateChallenge(String)
Generates a new challenge for this user and records it.
 o generateToken(String)
Generates a new Token for this user and records it.
 o revokeToken(Token)
Removes this Token from token.user()'s cache of tokens.
 o verifyResponse(Response)
Checks that this Response is a valid version of the issued Challenge.
 o verifyToken(Token)
Checks that this Token is among those in token.user()'s cache of tokens.

Methods

 o generateChallenge
 public abstract Challenge generateChallenge(String username) throws AuthenticationException
Generates a new challenge for this user and records it. The challenge should later be verified with a call to verifyResponse().

Throws: AuthenticationException
if user is not found in the user table.
See Also:
verifyResponse
 o generateToken
 public abstract Token generateToken(String username) throws AuthenticationException
Generates a new Token for this user and records it. The challenge should later be verified with a call to verifyToken().

Throws: AuthenticationException
if user is not found in the user table.
See Also:
verifyToken
 o verifyToken
 public abstract boolean verifyToken(Token token)
Checks that this Token is among those in token.user()'s cache of tokens.

 o revokeToken
 public abstract boolean revokeToken(Token token)
Removes this Token from token.user()'s cache of tokens.

 o verifyResponse
 public abstract boolean verifyResponse(Response credentials)
Checks that this Response is a valid version of the issued Challenge.


All Packages  Class Hierarchy  This Package  Previous  Next  Index