Interface RequestContext


public interface RequestContext
A request context object.
  • Method Details

    • getSubjectAttributes

      List<Attribute> getSubjectAttributes(String attributeId, String dataType, String issuer)
      Called to get subject attributes in the current XACML request.
      Parameters:
      attributeId - the id of the attribute to get.
      dataType - the data type of the attribute.
      issuer - the name of the issuer associated with the attributeId.
      Returns:
      list of attributes to return. If multiple values exist for an attribute, then multiple Attribute objects with the same name are created and returned in the list.
    • getSubjectAttributes

      List<Attribute> getSubjectAttributes(String subjectCategory, String attributeId, String dataType, String issuer)
      Called to get subject attributes in the current XACML request.
      Parameters:
      subjectCategory - the subject category.
      attributeId - the id of the attribute to get.
      dataType - the data type of the attribute.
      issuer - the name of the issuer associated with the attributeId.
      Returns:
      list of attributes to return. If multiple values exist for an attribute, then multiple Attribute objects with the same name are created and returned in the list.
    • getResourceAttribute

      List<Attribute> getResourceAttribute(String attributeId, String dataType, String issuer)
      Called to get resources attributes in the current XACML request.
      Parameters:
      attributeId - the id of the attribute to get.
      dataType - the data type of the attribute.
      issuer - the name of the issuer associated with the attributeId.
      Returns:
      list of attributes to return. If multiple values exist for an attribute, then multiple Attribute objects with the same name are created and returned in the list.
    • getActionAttribute

      List<Attribute> getActionAttribute(String attributeId, String dataType, String issuer)
      Called to get action attributes in the current XACML request.
      Parameters:
      attributeId - the id of the attribute to get.
      dataType - the data type of the attribute.
      issuer - the name of the issuer associated with the attributeId.
      Returns:
      list of attributes to return. If multiple values exist for an attribute, then multiple Attribute objects with the same name are created and returned in the list.
    • getEnvironmentAttribute

      List<Attribute> getEnvironmentAttribute(String attributeId, String dataType, String issuer)
      Called to get environment attributes in the current XACML request.
      Parameters:
      attributeId - the id of the attribute to get.
      dataType - the data type of the attribute.
      issuer - the name of the issuer associated with the attributeId.
      Returns:
      list of attributes to return. If multiple values exist for an attribute, then multiple Attribute objects with the same name are created and returned in the list.
    • getParameter

      Object getParameter(String parameterName)
      Retrieve a parameter of the given name in the XACML request.
      Parameters:
      parameterName - the parameter name.
      Returns:
      value of parameter.
    • getResourceContents

      Node[] getResourceContents()
      Retrieve the resource contents in the XACML request.
      Returns:
      a dom node.