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
-
generateChallenge(String)
- Generates a new challenge for this user and records it.
-
generateToken(String)
- Generates a new Token for this user and records it.
-
revokeToken(Token)
- Removes this Token from
token.user()
's cache of tokens.
-
verifyResponse(Response)
- Checks that this Response is a valid version of the issued Challenge.
-
verifyToken(Token)
- Checks that this Token is among those in
token.user()
's
cache of tokens.
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
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
verifyToken
public abstract boolean verifyToken(Token token)
- Checks that this Token is among those in
token.user()
's
cache of tokens.
revokeToken
public abstract boolean revokeToken(Token token)
- Removes this Token from
token.user()
's cache of tokens.
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