Package com.sun.identity.xacml.policy
Interface Obligations
-
- All Superinterfaces:
XmlSerializable
- All Known Implementing Classes:
ObligationsImpl
@SupportedAll public interface Obligations extends XmlSerializable
TheObligationselement is a container of one or moreObligations issuded by authorization authority.
-
-
Field Summary
Fields Modifier and Type Field Description static StringOBLIGATIONS_ELEMENT
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddObligation(Obligation obligation)ListgetObligations()Returns theObligationobjects set in thisObligationsbooleanisMutable()Checks if this object is mutablevoidmakeImmutable()Makes this object immutablevoidsetObligations(List obligations)Sets theObligationobjects of thisObligationsdefault StringtoXMLString()Returns a string representation of this objectdefault StringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a string representation of this object-
Methods inherited from interface com.sun.identity.saml2.common.XmlSerializable
toDocumentFragment
-
-
-
-
Field Detail
-
OBLIGATIONS_ELEMENT
static final String OBLIGATIONS_ELEMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getObligations
List getObligations()
Returns theObligationobjects set in thisObligations- Returns:
- the
Obligationobjects set in thisObligations
-
setObligations
void setObligations(List obligations) throws XACMLException
Sets theObligationobjects of thisObligations- Parameters:
obligations- theObligationobjects to set in thisObligations- Throws:
XACMLException
-
addObligation
void addObligation(Obligation obligation) throws XACMLException
- Throws:
XACMLException
-
toXMLString
default String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
Returns a string representation of this object- Specified by:
toXMLStringin 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:
toXMLStringin 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:
trueif the object is mutable,falseotherwise
-
-