public class FormLoginHandlerImpl extends AuthenticationHandlerImpl<AuthenticationProvider> implements FormLoginHandler
authProvider, realmDEFAULT_PASSWORD_PARAM, DEFAULT_RETURN_URL_PARAM, DEFAULT_USERNAME_PARAM| Constructor and Description |
|---|
FormLoginHandlerImpl(AuthenticationProvider authProvider,
String usernameParam,
String passwordParam,
String returnURLParam,
String directLoggedInOKURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
parseCredentials(RoutingContext context,
Handler<AsyncResult<Credentials>> handler)
Parses the credentials from the request into a JsonObject.
|
void |
postAuthentication(RoutingContext ctx)
This method is called to perform any post authentication tasks, such as redirects.
|
FormLoginHandler |
setDirectLoggedInOKURL(String directLoggedInOKURL)
Set the url to redirect to if the user logs in directly at the url of the form login handler
without being redirected here first
|
FormLoginHandler |
setPasswordParam(String passwordParam)
Set the name of the form param used to submit the password
|
FormLoginHandler |
setReturnURLParam(String returnURLParam)
Set the name of the session attrioute used to specify the return url
|
FormLoginHandler |
setUsernameParam(String usernameParam)
Set the name of the form param used to submit the username
|
getAuthProvider, handle, processExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createauthenticateHeader, parseCredentialspublic FormLoginHandlerImpl(AuthenticationProvider authProvider, String usernameParam, String passwordParam, String returnURLParam, String directLoggedInOKURL)
public FormLoginHandler setUsernameParam(String usernameParam)
FormLoginHandlersetUsernameParam in interface FormLoginHandlerusernameParam - the name of the parampublic FormLoginHandler setPasswordParam(String passwordParam)
FormLoginHandlersetPasswordParam in interface FormLoginHandlerpasswordParam - the name of the parampublic FormLoginHandler setReturnURLParam(String returnURLParam)
FormLoginHandlersetReturnURLParam in interface FormLoginHandlerreturnURLParam - the name of the parampublic FormLoginHandler setDirectLoggedInOKURL(String directLoggedInOKURL)
FormLoginHandlersetDirectLoggedInOKURL in interface FormLoginHandlerdirectLoggedInOKURL - the URL to redirect topublic void parseCredentials(RoutingContext context, Handler<AsyncResult<Credentials>> handler)
AuthenticationHandlerparseCredentials in interface AuthenticationHandlercontext - the routing contexthandler - the handler to be called once the information is available.public void postAuthentication(RoutingContext ctx)
AuthenticationHandlerpostAuthentication in interface AuthenticationHandlerctx - the routing contextCopyright © 2021. All rights reserved.