public abstract class LocalIdPasswordLookup extends Object
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 and Description |
---|
LocalIdPasswordLookup() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getLocalIdentifier(String username,
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.
|
String |
lookupViaPassword(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String entityId,
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.
|
public abstract String getLocalIdentifier(String username, 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 String lookupViaPassword(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String entityId, String resumePath) throws 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)
.IOException
- if an IOException occurs when writing the HTTP response.public int getMaxUserChallengeRetries()
public void setMaxUserChallengeRetries(int maxUserChallengeRetries)
Copyright 2019 Ping Identity Corp. All rights reserved.