* of Permit or it has any <code>Obligation</code>s.
*/
public void handleResult(Result result) throws PermissionDeniedException
{
if(result == null)
{throw new PermissionDeniedException("A result of a request's response was null");}
final Set obligations = result.getObligations();
if(obligations != null && obligations.size() > 0)
{
throw new PermissionDeniedException("The XACML response had obligations that could not be fulfilled.");
}
final int decision = result.getDecision();
if(decision == Result.DECISION_PERMIT)
{return;}
throw new PermissionDeniedException("The response did not permit the request. The decision was: " + getDecisionString(decision, result.getStatus()));
}