eu.semiramis.policyManager.pdp
Interface ContextHandler

All Known Implementing Classes:
AbstractContextHandler, DefaultContextHandlerImpl, MultiplePdpContextHandlerImpl

public interface ContextHandler

ContextHandler objects are used to handle XACML requests sent from PEP and related responses

Author:
Paolo Roccetti

Field Summary
static java.lang.String CONTEXT_HANDLER_CLASS_PROPERTY
           
 
Method Summary
 java.lang.String getContextHandlerId()
          Get the identifier of this Context Handler (to distinguish among PDP of different context handler instances).
 org.opensaml.xacml.ctx.ResponseType handleRequest(org.opensaml.xacml.ctx.RequestType request)
          Handle a XACML request providing the corresponding response.
 void setConfigurationProperties(java.util.Properties properties)
          Set the current configuration properties in the handler.
 

Field Detail

CONTEXT_HANDLER_CLASS_PROPERTY

static final java.lang.String CONTEXT_HANDLER_CLASS_PROPERTY
See Also:
Constant Field Values
Method Detail

handleRequest

org.opensaml.xacml.ctx.ResponseType handleRequest(org.opensaml.xacml.ctx.RequestType request)
                                                  throws EvaluationException
Handle a XACML request providing the corresponding response.

Parameters:
request - the XACML request to handle
Returns:
the corresponding XACML response
Throws:
EvaluationException - if an exception occurs during request handling

setConfigurationProperties

void setConfigurationProperties(java.util.Properties properties)
                                throws ConfigurationException
Set the current configuration properties in the handler.

Parameters:
properties - the new configuration properties
Throws:
ConfigurationException - if the new configuration contains errors and cannot be applied

getContextHandlerId

java.lang.String getContextHandlerId()
Get the identifier of this Context Handler (to distinguish among PDP of different context handler instances). If Context Handlers are properly created, by means of the createContextHandler() method in ContextHandlerFactory class, identifiers are guarantee to be unique in the current Java environment.

Returns:
a String representation of the Context Handler identifier for this Context Handler instance