Package com.sun.identity.xacml.context
Interface Request
- All Superinterfaces:
XmlSerializable
- All Known Implementing Classes:
RequestImpl
The
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>
-
Method Summary
Modifier and TypeMethodDescriptionReturns the instance ofAction
Returns the instance ofEnvironment
Returns the one to manyResource
elements of this objectReturns the one to manySubject
elements of this objectboolean
Checks if the object is mutablevoid
Makes the object immutablevoid
Sets the instance ofAction
void
Sets the instance ofEnvironment
void
setResources
(List resources) Sets the one to manyResource
elements of this objectvoid
setSubjects
(List subjects) Sets the one to manySubject
elements of this objectdefault String
Returns a string representation of this objectdefault String
toXMLString
(boolean includeNSPrefix, boolean declareNS) Returns aString
representation of this objectMethods inherited from interface com.sun.identity.saml2.common.XmlSerializable
toDocumentFragment
-
Method Details
-
getSubjects
List getSubjects()Returns the one to manySubject
elements of this object- Returns:
- the
Subject
elements of this object
-
setSubjects
Sets the one to manySubject
elements of this object- Parameters:
subjects
- the one to manySubject
elements of this object- Throws:
XACMLException
- if the object is immutable An object is consideredimmutable
ifmakeImmutable()
has been invoked on it. It can be determined by callingisMutable
on the object.
-
getResources
List getResources()Returns the one to manyResource
elements of this object- Returns:
- the
Resource
elements of this object
-
setResources
Sets the one to manyResource
elements of this object- Parameters:
resources
- the one to manyResource
elements of this object- Throws:
XACMLException
- if the object is immutable An object is consideredimmutable
ifmakeImmutable()
has been invoked on it. It can be determined by callingisMutable
on the object.
-
getAction
Action getAction()Returns the instance ofAction
- Returns:
- instance of
Action
-
setAction
Sets the instance ofAction
- Parameters:
action
- instance ofAction
- Throws:
XACMLException
- if the object is immutable An object is consideredimmutable
ifmakeImmutable()
has been invoked on it. It can be determined by callingisMutable
on the object.
-
getEnvironment
Environment getEnvironment()Returns the instance ofEnvironment
- Returns:
- the instance of
Environment
-
setEnvironment
Sets the instance ofEnvironment
- Parameters:
env
- instance ofEnvironment
- Throws:
XACMLException
- if the object is immutable An object is consideredimmutable
ifmakeImmutable()
has been invoked on it. It can be determined by callingisMutable
on the object.
-
toXMLString
Returns aString
representation of this object- Specified by:
toXMLString
in interfaceXmlSerializable
- Parameters:
includeNSPrefix
- 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.- Returns:
- a string representation of this object
- Throws:
XACMLException
- if conversion fails for any reason
-
toXMLString
Returns a string representation of this object- Specified by:
toXMLString
in interfaceXmlSerializable
- Returns:
- a string representation of this object
- Throws:
XACMLException
- if conversion fails for any reason
-
makeImmutable
void makeImmutable()Makes the object immutable -
isMutable
boolean isMutable()Checks if the object is mutable- Returns:
true
if the object is mutable,false
otherwise
-