List of usage examples for org.apache.shiro.web.filter.authc FormAuthenticationFilter setUsernameParam
public void setUsernameParam(String usernameParam)
From source file:org.panifex.security.shiro.SecurityFilterImpl.java
License:Open Source License
protected void bindUsernameParamToFormAuthenticationFilter() { FormAuthenticationFilter formAuthenticationFilter = getFormAuthenticationFilter(); if (formAuthenticationFilter != null) { log.debug("Bind username param {}", usernameParam); formAuthenticationFilter.setUsernameParam(usernameParam); }/*from ww w. java 2 s . co m*/ }
From source file:org.panifex.security.shiro.SecurityFilterImplTest.java
License:Open Source License
private void expectSettingUsernameParam(String usernameParam) { FormAuthenticationFilter filterMock = expectGettingFormAuthenticationFilter(); // expect setting username param filterMock.setUsernameParam(usernameParam); }