230231232233234235236237238239240
synchronized (principal.getName().intern()) { if (cacheInfo != null) { isValid = validateCache(cacheInfo, credential, activeSubject); cacheInfo.release(); } if (isValid == false) isValid = authenticate(principal, credential, activeSubject); } }
239240241242243244245246247248249
} } else { if (cacheInfo != null) cacheInfo.release(); isValid = authenticate(principal, credential, activeSubject); } if (trace) log.trace("End isValid, " + isValid); return isValid;
272273274275276277278279280281282
{ result = info.callerPrincipal; // If the mapping did not have a callerPrincipal just use principal if (result == null) result = principal; info.release(); } } return result; }