com.unboundid.directory.sdk.broker.types
Interface RequestContext


public interface RequestContext

Interface which provides access to the request context for the XACML request currently being processed.


Method Summary
 java.lang.String getAction()
          Get the value of the action attribute of the current request.
 RequestAttribute getAttribute(java.lang.String categoryId, java.lang.String attributeId)
          Get the specified attribute from the current request.
 java.util.List<java.lang.String> getResources()
          Get the values of the resource attributes of the current request.
 java.lang.String getSubject()
          Get the value of the subject attribute of the current request.
 

Method Detail

getSubject

java.lang.String getSubject()
Get the value of the subject attribute of the current request.

Returns:
Subject string.

getAction

java.lang.String getAction()
Get the value of the action attribute of the current request.

Returns:
Action string.

getResources

java.util.List<java.lang.String> getResources()
Get the values of the resource attributes of the current request.

Returns:
Resource strings

getAttribute

RequestAttribute getAttribute(java.lang.String categoryId,
                              java.lang.String attributeId)
                              throws AttributeRetrievalException
Get the specified attribute from the current request.

Parameters:
categoryId - the XACML category URI
attributeId - the XACML attribute Id
Returns:
RequestAttribute object, or null if the attribute could not be found in the request context.
Throws:
AttributeRetrievalException - if an error occurs retrieving the attribute