Package com.sun.identity.xacml.context
Interface Request
-
- All Known Implementing Classes:
RequestImpl
public interface RequestTheRequestelement is the top-level element in the XACML context scehema. Its an abstraction layer used by the policy language. It containsSubject,Resource,ActionandEnvironmentelements.<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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActiongetAction()Returns the instance ofActionEnvironmentgetEnvironment()Returns the instance ofEnvironmentListgetResources()Returns the one to manyResourceelements of this objectListgetSubjects()Returns the one to manySubjectelements of this objectbooleanisMutable()Checks if the object is mutablevoidmakeImmutable()Makes the object immutablevoidsetAction(Action action)Sets the instance ofActionvoidsetEnvironment(Environment env)Sets the instance ofEnvironmentvoidsetResources(List resources)Sets the one to manyResourceelements of this objectvoidsetSubjects(List subjects)Sets the one to manySubjectelements of this objectStringtoXMLString()Returns a string representation of this objectStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns aStringrepresentation of this object
-
-
-
Method Detail
-
getSubjects
List getSubjects()
Returns the one to manySubjectelements of this object- Returns:
- the
Subjectelements of this object
-
setSubjects
void setSubjects(List subjects) throws XACMLException
Sets the one to manySubjectelements of this object- Parameters:
subjects- the one to manySubjectelements of this object- Throws:
XACMLException- if the object is immutable An object is consideredimmutableifmakeImmutable()has been invoked on it. It can be determined by callingisMutableon the object.
-
getResources
List getResources()
Returns the one to manyResourceelements of this object- Returns:
- the
Resourceelements of this object
-
setResources
void setResources(List resources) throws XACMLException
Sets the one to manyResourceelements of this object- Parameters:
resources- the one to manyResourceelements of this object- Throws:
XACMLException- if the object is immutable An object is consideredimmutableifmakeImmutable()has been invoked on it. It can be determined by callingisMutableon the object.
-
getAction
Action getAction()
Returns the instance ofAction- Returns:
- instance of
Action
-
setAction
void setAction(Action action) throws XACMLException
Sets the instance ofAction- Parameters:
action- instance ofAction- Throws:
XACMLException- if the object is immutable An object is consideredimmutableifmakeImmutable()has been invoked on it. It can be determined by callingisMutableon the object.
-
getEnvironment
Environment getEnvironment()
Returns the instance ofEnvironment- Returns:
- the instance of
Environment
-
setEnvironment
void setEnvironment(Environment env) throws XACMLException
Sets the instance ofEnvironment- Parameters:
env- instance ofEnvironment- Throws:
XACMLException- if the object is immutable An object is consideredimmutableifmakeImmutable()has been invoked on it. It can be determined by callingisMutableon the object.
-
toXMLString
String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
Returns aStringrepresentation of this object- 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
String toXMLString() throws XACMLException
Returns a string representation of this object- 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:
trueif the object is mutable,falseotherwise
-
-