Interface RequestContext
public interface RequestContext
A request context object.
-
Method Summary
Modifier and TypeMethodDescriptiongetActionAttribute
(String attributeId, String dataType, String issuer) Called to get action attributes in the current XACML request.getEnvironmentAttribute
(String attributeId, String dataType, String issuer) Called to get environment attributes in the current XACML request.getParameter
(String parameterName) Retrieve a parameter of the given name in the XACML request.getResourceAttribute
(String attributeId, String dataType, String issuer) Called to get resources attributes in the current XACML request.Node[]
Retrieve the resource contents in the XACML request.getSubjectAttributes
(String attributeId, String dataType, String issuer) Called to get subject attributes in the current XACML request.getSubjectAttributes
(String subjectCategory, String attributeId, String dataType, String issuer) Called to get subject attributes in the current XACML request.
-
Method Details
-
getSubjectAttributes
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
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
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
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
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.
-