add setter for using a custom name for the rememberMeParameter

This commit is contained in:
Michael Cramer
2015-01-07 14:20:44 +01:00
committed by Rob Winch
parent cd352f665b
commit c8b79289c9
2 changed files with 29 additions and 0 deletions

View File

@@ -162,6 +162,17 @@ public final class RememberMeConfigurer<H extends HttpSecurityBuilder<H>> extend
return this;
}
/**
* The HTTP parameter used to indicate to remember the user at time of login.
*
* @param rememberMeParameter the HTTP parameter used to indicate to remember the user
* @return the {@link RememberMeConfigurer} for further customization
*/
public RememberMeConfigurer<H> rememberMeParameter(String rememberMeParameter) {
this.rememberMeParameter = rememberMeParameter;
return this;
}
/**
* Allows control over the destination a remembered user is sent to when they are successfully authenticated.
* By default, the filter will just allow the current request to proceed, but if an