/** * Get whether one or more of the active results in this context satisfies the request. * * @return true iff at least one of the active results satisfies the request */ public boolean isAcceptable() { final AuthenticationContext authnContext = (AuthenticationContext) getParent(); if (authnContext != null) { for (final AuthenticationResult result : activeResults.values()) { // Only include Principals from fresh results or when forced authn is off. if (!(authnContext.isForceAuthn() && result.isPreviousResult())) { if (authnContext.isAcceptable(result)) { return true; } } } } return false; }