public interface Request
Request
element is the top-level element in the XACML
context scehema. Its an abstraction layer used by the policy language.
It contains Subject
, Resource
, Action
and Environment elements.
<xs:complexType name="RequestType">
<xs:sequence>
<xs:element ref="xacml-context:Subject" maxOccurs="unbounded"/>
<xs:element ref="xacml-context:Resource" maxOccurs="unbounded"/>
<xs:element ref="xacml-context:Action"/>
<xs:element ref="xacml-context:Environment"/>
<xs:sequence>
<xs:complexType>
Modifier and Type | Method and Description |
---|---|
Action |
getAction()
Returns the instance of
Action |
Environment |
getEnvironment()
Returns the instance of
Environment |
List |
getResources()
Returns the one to many
Resource elements of this object |
List |
getSubjects()
Returns the one to many
Subject elements of this object |
boolean |
isMutable()
Checks if the object is mutable
|
void |
makeImmutable()
Makes the object immutable
|
void |
setAction(Action action)
Sets the instance of
Action |
void |
setEnvironment(Environment env)
Sets the instance of
Environment |
void |
setResources(List resources)
Sets the one to many
Resource elements of this object |
void |
setSubjects(List subjects)
Sets the one to many
Subject elements of this object |
String |
toXMLString()
Returns a string representation of this object
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a
String representation of this object |
List getSubjects()
Subject
elements of this objectSubject
elements of this objectvoid setSubjects(List subjects) throws XACMLException
Subject
elements of this objectsubjects
- the one to many Subject
elements of this
objectXACMLException
- if the object is immutable
An object is considered immutable
if
makeImmutable()
has been invoked on it. It can
be determined by calling isMutable
on the object.List getResources()
Resource
elements of this objectResource
elements of this objectvoid setResources(List resources) throws XACMLException
Resource
elements of this objectresources
- the one to many Resource
elements of this
objectXACMLException
- if the object is immutable
An object is considered immutable
if
makeImmutable()
has been invoked on it. It can
be determined by calling isMutable
on the object.Action getAction()
Action
Action
void setAction(Action action) throws XACMLException
Action
action
- instance of Action
XACMLException
- if the object is immutable
An object is considered immutable
if
makeImmutable()
has been invoked on it. It can
be determined by calling isMutable
on the object.Environment getEnvironment()
Environment
Environment
void setEnvironment(Environment env) throws XACMLException
Environment
env
- instance of Environment
XACMLException
- if the object is immutable
An object is considered immutable
if
makeImmutable()
has been invoked on it. It can
be determined by calling isMutable
on the object.String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
String
representation of this objectincludeNSPrefix
- Determines whether or not the namespace qualifier
is prepended to the Element when converteddeclareNS
- Determines whether or not the namespace is declared
within the Element.XACMLException
- if conversion fails for any reasonString toXMLString() throws XACMLException
XACMLException
- if conversion fails for any reasonvoid makeImmutable()
boolean isMutable()
true
if the object is mutable,
false
otherwiseCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.