Shiro提供了Remember服务,AuthenticationToken需要实现org.apache.shiro.authc.RememberMeAuthenticationToken接口(UsernamePasswordtoken已经提供了这个接口)。
这个接口提供了一个方法 :
boolean isRememberMe();
如果这个方法设置为true,Shiro 将会在整个会话中记住终端用户的身份ID。
Shiro提供了Remember服务,AuthenticationToken需要实现org.apache.shiro.authc.RememberMeAuthenticationToken接口(UsernamePasswordtoken已经提供了这个接口)。
这个接口提供了一个方法 :
boolean isRememberMe();
如果这个方法设置为true,Shiro 将会在整个会话中记住终端用户的身份ID。