/** * Specify both the password parameter name and the password. * * @param usernameParameter the HTTP parameter to place the username. Default is * "username". * @param username the value of the username parameter. Default is "user". * @return the {@link FormLoginRequestBuilder} for additional customizations */ public FormLoginRequestBuilder user(String usernameParameter, String username) { userParameter(usernameParameter); this.username = username; return this; }
/** * Specify both the password parameter name and the password. * * @param usernameParameter the HTTP parameter to place the username. Default is * "username". * @param username the value of the username parameter. Default is "user". * @return the {@link FormLoginRequestBuilder} for additional customizations */ public FormLoginRequestBuilder user(String usernameParameter, String username) { userParameter(usernameParameter); this.username = username; return this; }