|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceid.saml20.adapter.sp.authn.LocalIdPasswordLookup
public abstract class LocalIdPasswordLookup
An abstract class that provides much of the needed implementation for form user-based authentication.
Implementers need only extend and implement the
lookupViaPassword(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, String, String)
method. An implementation of SpAuthenticationAdapter
might have an instance of this class
and delegate calls to
SpAuthenticationAdapter.lookupLocalUserId(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, String, String)
.
Constructor Summary | |
---|---|
LocalIdPasswordLookup()
|
Method Summary | |
---|---|
abstract java.lang.String |
getLocalIdentifier(java.lang.String username,
java.lang.String password)
Takes a username/password and translates into a local identifer. |
int |
getMaxUserChallengeRetries()
This method dictates the number of unsuccessful login attempts a user can make before the login is considered to have failed. |
java.lang.String |
lookupViaPassword(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.String entityId,
java.lang.String resumePath)
Lookup the local user identifier via form based username/password authentication and delegate validation of the username/password to the getLocalIdentifier(String username, String password) . |
void |
setMaxUserChallengeRetries(int maxUserChallengeRetries)
Sets the number of unsuccessful login attempts a user can make before the login is considered to have failed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalIdPasswordLookup()
Method Detail |
---|
public abstract java.lang.String getLocalIdentifier(java.lang.String username, java.lang.String password)
username
- the username obtained from the user via the HTML form.password
- the password obtained from the user via the HTML form.
public java.lang.String lookupViaPassword(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.lang.String entityId, java.lang.String resumePath) throws java.io.IOException
getLocalIdentifier(String username, String password)
.
req
- the HttpServletRequestresp
- the HttpServletResponseentityId
- the entityId of the IdP.resumePath
- the relative URL that the user agent needs to return to, when it needs to operate asynchronously.
This value can usually just be passed though directly from an implementation of
SpAuthenticationAdapter.lookupLocalUserId(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, String, String)
.
java.io.IOException
- if an IOException occurs when writing the HTTP response.public int getMaxUserChallengeRetries()
public void setMaxUserChallengeRetries(int maxUserChallengeRetries)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |