/** * Clears out any cached data associated with the specified account identity/identities. * <p/> * This implementation will return quietly if the principals argument is null or empty. Otherwise it delegates * to {@link #doClearCache(org.apache.shiro.subject.PrincipalCollection)}. * * @param principals the principals of the account for which to clear any cached data. * @since 1.2 */ protected void clearCache(PrincipalCollection principals) { if (!isEmpty(principals)) { doClearCache(principals); log.trace("Cleared cache entries for account with principals [{}]", principals); } }
if (!isEmpty(principals)) { Collection thisPrincipals = principals.fromRealm(getName()); if (!CollectionUtils.isEmpty(thisPrincipals)) {
/** * Clears out any cached data associated with the specified account identity/identities. * <p/> * This implementation will return quietly if the principals argument is null or empty. Otherwise it delegates * to {@link #doClearCache(org.apache.shiro.subject.PrincipalCollection)}. * * @param principals the principals of the account for which to clear any cached data. * @since 1.2 */ protected void clearCache(PrincipalCollection principals) { if (!isEmpty(principals)) { doClearCache(principals); log.trace("Cleared cache entries for account with principals [{}]", principals); } }
if (!isEmpty(principals)) { Collection thisPrincipals = principals.fromRealm(getName()); if (!CollectionUtils.isEmpty(thisPrincipals)) {