All Packages Class Hierarchy This Package Previous Next Index
Class jnfs.security.DSAAuthentication
java.lang.Object
|
+----jnfs.security.DSAAuthentication
- public class DSAAuthentication
- extends Object
- implements Authentication
An authentication manager implemented using DSA signatures.
- Version:
- $Id: DSAAuthentication.java,v 1.37 1997/05/20 19:16:20 mjr Exp $
- Author:
- Michael John Radwin
-
DSAAuthentication(UserTable)
- Contructs a new authentication manager with an empty user table.
-
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.
DSAAuthentication
public DSAAuthentication(UserTable users)
- Contructs a new authentication manager with an empty user table.
generateChallenge
public 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 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
revokeToken
public boolean revokeToken(Token token)
- Removes this Token from
token.user()
's cache of tokens.
verifyToken
public boolean verifyToken(Token token)
- Checks that this Token is among those in
token.user()
's
cache of tokens.
verifyResponse
public 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