/** * If caching is enabled, this will clear any cached data associated with the specified account identity. * Subclasses are free to override for additional behavior, but be sure to call {@code super.onLogout} first. * <p/> * This default implementation merely calls {@link #clearCache(org.apache.shiro.subject.PrincipalCollection)}. * * @param principals the application-specific Subject/user identifier that is logging out. * @see #clearCache(org.apache.shiro.subject.PrincipalCollection) * @see #getAvailablePrincipal(org.apache.shiro.subject.PrincipalCollection) * @since 1.2 */ public void onLogout(PrincipalCollection principals) { clearCache(principals); }
/** * If caching is enabled, this will clear any cached data associated with the specified account identity. * Subclasses are free to override for additional behavior, but be sure to call {@code super.onLogout} first. * <p/> * This default implementation merely calls {@link #clearCache(org.apache.shiro.subject.PrincipalCollection)}. * * @param principals the application-specific Subject/user identifier that is logging out. * @see #clearCache(org.apache.shiro.subject.PrincipalCollection) * @see #getAvailablePrincipal(org.apache.shiro.subject.PrincipalCollection) * @since 1.2 */ public void onLogout(PrincipalCollection principals) { clearCache(principals); }