Package com.sun.identity.xacml.policy
Interface Obligation
-
- All Superinterfaces:
XmlSerializable
- All Known Implementing Classes:
ObligationImpl
@SupportedAll public interface Obligation extends XmlSerializable
TheObligation
element is a container of one or moreAttributeAssignment
s issuded by authorization authority.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description List
getAttributeAssignments()
Returns XML elements corresponding toAttributeAssignment
elements for this obligation.String
getFulfillOn()
Returns the FullFillOn effect type of this obligationURI
getObligationId()
Returns the ObligationId of thisObligation
boolean
isMutable()
Checks if this object is mutablevoid
makeImmutable()
Makes this object immutablevoid
setAttributeAssignments(List attributeAssignments)
Sets XML elements corresponding toAttributeAssignment
elements for this obligation.void
setFulfillOn(String fulfillOn)
Sets the FullFillOn effect type of this obligationvoid
setObligationId(URI obligationId)
Sets the ObligationId of theObligation
default String
toXMLString()
Returns a string representation of this objectdefault String
toXMLString(boolean includeNSPrefix, boolean declareNS)
Returns a string representation of this object-
Methods inherited from interface com.sun.identity.saml2.common.XmlSerializable
toDocumentFragment
-
-
-
-
Method Detail
-
getObligationId
URI getObligationId()
Returns the ObligationId of thisObligation
- Returns:
- the
URI
representing ObligationId of thisObligation
-
setObligationId
void setObligationId(URI obligationId) throws XACMLException
Sets the ObligationId of theObligation
- Parameters:
obligationId
-URI
representing the ObligationId.- Throws:
XACMLException
- if the object is immutable
-
getFulfillOn
String getFulfillOn()
Returns the FullFillOn effect type of this obligation- Returns:
- the FullFillOn effect type of this obligation
-
setFulfillOn
void setFulfillOn(String fulfillOn) throws XACMLException
Sets the FullFillOn effect type of this obligation- Parameters:
fulfillOn
- FullFillOn effect type of this obligation- Throws:
XACMLException
-
getAttributeAssignments
List getAttributeAssignments()
Returns XML elements corresponding toAttributeAssignment
elements for this obligation.- Returns:
- the XML elements corresponding to
AttributeAssignment
elements for this obligation.
-
setAttributeAssignments
void setAttributeAssignments(List attributeAssignments) throws XACMLException
Sets XML elements corresponding toAttributeAssignment
elements for this obligation.- Parameters:
attributeAssignments
- XML elements corresponding toAttributeAssignment
elements for this obligation.- Throws:
XACMLException
-
toXMLString
default String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
Returns a string 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
- Throws:
XACMLException
- if conversion fails for any reason
-
toXMLString
default String toXMLString() throws XACMLException
Returns a string representation of this object- Specified by:
toXMLString
in interfaceXmlSerializable
- Returns:
- a string representation
- Throws:
XACMLException
- if conversion fails for any reason
-
makeImmutable
void makeImmutable()
Makes this object immutable
-
isMutable
boolean isMutable()
Checks if this object is mutable- Returns:
true
if the object is mutable,false
otherwise
-
-