com.goonit.imapi.jaxrs.servlet.isim
Class forgottenPassword
java.lang.Object
com.goonit.imapi.jaxrs.servlet.isim.forgottenPassword
public class forgottenPassword
- extends java.lang.Object
forgottenPassword
is a RESTFul service which retrieves a set of user's forgotten password questions.
This class has a Path
annotation with the value "/forgottenPassword/{userid}/" which
means the resource will be available at:
http://<hostname>:<port>/<context root>/<servlet path>/forgottenPassword/{userid}
The userid must be a valid ISIM Account
Method Summary |
java.lang.String |
GET(javax.servlet.http.HttpServletRequest requestObj,
javax.servlet.http.HttpServletResponse responseObj,
java.lang.String user)
Processes a GET request and returns the forgotten password challenge questions to be asked. |
java.lang.String |
POST(java.lang.String carsStr,
javax.servlet.http.HttpServletRequest requestObj,
javax.servlet.http.HttpServletResponse responseObj)
Processes a POST containing challenges/response and returns the Request ID of the Password reset from ISIM. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
forgottenPassword
public forgottenPassword()
GET
public java.lang.String GET(@Context
javax.servlet.http.HttpServletRequest requestObj,
@Context
javax.servlet.http.HttpServletResponse responseObj,
java.lang.String user)
- Processes a GET request and returns the forgotten password challenge questions to be asked.
* e.g. http://localhost/goonit/goonapi/forgottenPassword/goona/
- Parameters:
userid
- the ISIM userid
- Returns:
- a JSON object containing the questions to be asked, e.g. :-
[
"Favourite pet's name",
"First school"
]
POST
public java.lang.String POST(java.lang.String carsStr,
@Context
javax.servlet.http.HttpServletRequest requestObj,
@Context
javax.servlet.http.HttpServletResponse responseObj)
- Processes a POST containing challenges/response and returns the Request ID of the Password reset from ISIM.
- Parameters:
userid
- - the ISIM useridmessageBody
- - a JSON object containing the new passord and an array of challenge/response objects , e.g. :-
{
[{"Favourite pet's name","lassie"},
"First school","stmarys}],
"password","newPassword"
}
- Returns:
- The ISIM Request ID