impostor
Interface ChallengeResponseManager

All Known Implementing Classes:
EmptyManager, SimpleChallengeResponseManager

public interface ChallengeResponseManager

This interface defines the methods that a class must implement in order to provide the functionality of creating challenges for the Impostor daemon and verifying responses that come back from users.


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 identifier)
          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 identifier, 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.
 

Method Detail

getNewChallenge

public java.lang.Object getNewChallenge()
The Impostor daemon calls this method in order to get the next challenge for carrying out user authentication. Note that it is independent of any particular user since the challenge is issued BEFORE the user has a chance to identify him/herself.


isValidIdentifier

public boolean isValidIdentifier(java.lang.Object identifier)
The Impostor daemon calls this method in order to determine whether or not a given user identifier is valid (known). At the moment, the identifier is a String object that is retrieved from the user input of the Impostor login page (login.html).


verifyResponse

public boolean verifyResponse(java.lang.Object identifier,
                              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. The challenge object had been previously acquired using the getNewChallenge method. The identifier and response parameters are String objects, as entered by the user into the Impostor login page (login.html).