|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--HotmailYahooMailRHULMailRecognizer
This class recognizes HTTP requests that constitute login requests into
one of the following websites:
Microsoft Hotmail (Passport), Yahoo Mail (Secure version) and Royal Holloway,
University of London webmail.
It is typically instantiated by an Impostor, using the
getRequestRecognizer method of a UserManager implementation.
| Field Summary | |
protected boolean |
isHotmail
|
protected boolean |
isRhulMail
|
protected boolean |
isYahooMailSecure
|
(package private) java.lang.String |
request
|
| Constructor Summary | |
(package private) |
HotmailYahooMailRHULMailRecognizer()
|
| Method Summary | |
java.lang.String |
fillInUsernameAndPassword(java.lang.String username,
java.lang.String password)
A RequestRecognizer must also implement the functionality to fill a given username and password into the HTTP request with which is was initialized, such that the resulting HTTP request effectively logs the specified username into the site, using the specified password. |
java.lang.String |
getLogEntry()
The Impostor daemon calls this method in order to store an entry in a log for this RequestRecognizer. |
java.lang.String |
getServiceName()
The Impostor daemon calls this method only if this RequestRecognizer's isRecognized method returns
true. |
void |
init(java.lang.String host,
int port,
java.lang.String request)
The Impostor daemon calls this method in order to initialize the RequestRecognizer. |
boolean |
isRecognized()
The Impostor daemon calls this method in order to determine whether this RequestRecognizer recognized the HTTP request with which it was initialized as a login attempt into a website. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.String request
protected boolean isHotmail
protected boolean isYahooMailSecure
protected boolean isRhulMail
| Constructor Detail |
HotmailYahooMailRHULMailRecognizer()
| Method Detail |
public void init(java.lang.String host,
int port,
java.lang.String request)
RequestRecognizer
init in interface RequestRecognizer
public java.lang.String fillInUsernameAndPassword(java.lang.String username,
java.lang.String password)
RequestRecognizerisRecognized method returns
true. The daemon will call this method only after a valid Impostor user has
successfully authenticated him/herself. (as determined by the imlementation of a
ChallengeResponseManager). The username and password the Impostor daemon passes as parameters
to this method are determined by the implementation of a UserManager.
fillInUsernameAndPassword in interface RequestRecognizerpublic java.lang.String getServiceName()
RequestRecognizerisRecognized method returns
true. This method should return the name of the service or website this recognized request
is a login attempt for. The daemon uses this name in order to generate the Impostor login page.
getServiceName in interface RequestRecognizerpublic java.lang.String getLogEntry()
RequestRecognizer
getLogEntry in interface RequestRecognizerpublic boolean isRecognized()
RequestRecognizerinit method of this object has not been
called yet, or if the request was not recognized as a login attempt. If this method returns
true, the Impostor daemon expects the remaining methods to return non-null values.
isRecognized in interface RequestRecognizer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||