Example usage for org.apache.shiro.web.filter.authc FormAuthenticationFilter setPasswordParam

List of usage examples for org.apache.shiro.web.filter.authc FormAuthenticationFilter setPasswordParam

Introduction

In this page you can find the example usage for org.apache.shiro.web.filter.authc FormAuthenticationFilter setPasswordParam.

Prototype

public void setPasswordParam(String passwordParam) 

Source Link

Document

Sets the request parameter name to look for when acquiring the password.

Usage

From source file:org.panifex.security.shiro.SecurityFilterImpl.java

License:Open Source License

protected void bindPasswordParamToFormAuthenticationFilter() {
    FormAuthenticationFilter formAuthenticationFilter = getFormAuthenticationFilter();

    if (formAuthenticationFilter != null) {
        log.debug("Bind password param {}", passwordParam);
        formAuthenticationFilter.setPasswordParam(passwordParam);
    }//w  ww  .  j  a  va  2s . c  o m
}

From source file:org.panifex.security.shiro.SecurityFilterImplTest.java

License:Open Source License

private void expectSettingPasswordParam(String passwordParam) {
    FormAuthenticationFilter filterMock = expectGettingFormAuthenticationFilter();

    // expect setting password param
    filterMock.setPasswordParam(passwordParam);
}