use of org.nutz.integration.shiro.SimplePrincipalSerializer in project nutzboot by nutzam.
the class ShiroEnvStarter method createRememberMeManager.
@IocBean(name = "shiroRememberMeManager")
public RememberMeManager createRememberMeManager() {
CookieRememberMeManager rememberMeManager = new CookieRememberMeManager();
rememberMeManager.setSerializer(new SimplePrincipalSerializer());
SimpleCookie cookie = new SimpleCookie();
cookie.setName("rememberMe");
cookie.setHttpOnly(true);
rememberMeManager.setCookie(cookie);
return rememberMeManager;
}
Aggregations