for (Result r : results) {
if (r.getDecision() != Result.DECISION_PERMIT) {
logger.debug("Denying access: " + r.getDecision());
switch (r.getDecision()) {
case Result.DECISION_DENY:
throw new AuthzDeniedException("Deny");
case Result.DECISION_INDETERMINATE:
throw new AuthzDeniedException("Indeterminate");
case Result.DECISION_NOT_APPLICABLE:
throw new AuthzDeniedException("NotApplicable");
default:
}
}
}
logger.debug("Permitting access!");