org.glite.authz.pep.obligation
Interface ObligationHandler


public interface ObligationHandler

Obligation Handler interface

Obligation handlers must be stateless.


Method Summary
 boolean evaluateObligation(Request request, Result result)
          Evaluates the obligation represented by this handler.
 int getHandlerPrecedence()
          Gets the precedence of the handler.
 java.lang.String getId()
          Gets a unique identifier (name) for this obligation handle.
 java.lang.String getObligationId()
          Gets the ID of the handled obligation.
 

Method Detail

getId

java.lang.String getId()
Gets a unique identifier (name) for this obligation handle.

Returns:
unique identifier for this obligation handle

getObligationId

java.lang.String getObligationId()
Gets the ID of the handled obligation.

Returns:
ID of the handled obligation

evaluateObligation

boolean evaluateObligation(Request request,
                           Result result)
                           throws ObligationProcessingException
Evaluates the obligation represented by this handler.

Parameters:
request - the authorization request
result - the result being processed
Returns:
true if the obligation handler applied to the result
Throws:
ObligationProcessingException - thrown if there is a problem processing this handler

getHandlerPrecedence

int getHandlerPrecedence()
Gets the precedence of the handler.

Returns:
precedence of the handler


Copyright © 2008-2012 EMI - European Middleware Initiative. All Rights Reserved.