|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--SimpleChallengeResponseManager
This class is a very simple implementation of the ChallengeResponseManager
interface. It basically opens a simple text file that contains user identifiers
and passwords ("secrets") for the one-time authentication, the "Impostor user database".
Instead of being a true one-time authentication mechanism, however, this simple implementation
merely checks the secret value (i.e. the password) itself.
| Constructor Summary | |
protected |
SimpleChallengeResponseManager(java.lang.String filename)
|
| Method Summary | |
java.lang.Object |
getNewChallenge()
The Impostor daemon calls this method in order to get the next challenge for carrying out user authentication. |
boolean |
isValidIdentifier(java.lang.Object id)
The Impostor daemon calls this method in order to determine whether or not a given user identifier is valid (known). |
boolean |
verifyResponse(java.lang.Object id,
java.lang.Object challenge,
java.lang.Object response)
The Impostor daemon calls this method in order to verify whether or not the response from the user identified by the given identifier matches the given challenge. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected SimpleChallengeResponseManager(java.lang.String filename)
throws java.io.IOException,
java.io.FileNotFoundException
| Method Detail |
public java.lang.Object getNewChallenge()
ChallengeResponseManager
getNewChallenge in interface ChallengeResponseManager
public boolean verifyResponse(java.lang.Object id,
java.lang.Object challenge,
java.lang.Object response)
ChallengeResponseManager
verifyResponse in interface ChallengeResponseManagerpublic boolean isValidIdentifier(java.lang.Object id)
ChallengeResponseManager
isValidIdentifier in interface ChallengeResponseManager
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||