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

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

Introduction

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

Prototype

String DEFAULT_REMEMBER_ME_PARAM

To view the source code for org.apache.shiro.web.filter.authc FormAuthenticationFilter DEFAULT_REMEMBER_ME_PARAM.

Click Source Link

Usage

From source file:com.cuisongliu.springboot.shiro.autoconfig.ShiroAutoConfig.java

License:Open Source License

private ServerFormAuthenticationFilter serverAuthenticationFilter() {
    ServerFormAuthenticationFilter filter = new ServerFormAuthenticationFilter();
    if (springShiroProperties.getEnableRememberMe()) {
        filter.setRememberMeParam(FormAuthenticationFilter.DEFAULT_REMEMBER_ME_PARAM);
    }/* w w w  .  j  ava  2 s. co m*/
    filter.setUsernameParam(FormAuthenticationFilter.DEFAULT_USERNAME_PARAM);
    filter.setPasswordParam(FormAuthenticationFilter.DEFAULT_PASSWORD_PARAM);
    return filter;
}