Class ConditionsImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.saml.saml2.core.impl.ConditionsImpl
- All Implemented Interfaces:
XMLObject,SAMLObject,Conditions
Concrete implementation of
Conditions.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IndexedXMLObjectChildrenList<Condition>A Condition.private InstantNot Before conditions.private InstantNot On Or After conditions.Fields inherited from interface org.opensaml.saml.saml2.core.Conditions
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, NOT_BEFORE_ATTRIB_NAME, NOT_BEFORE_ATTRIB_QNAME, NOT_ON_OR_AFTER_ATTRIB_NAME, NOT_ON_OR_AFTER_ATTRIB_QNAME, TYPE_LOCAL_NAME, TYPE_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConditionsImpl(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the audience restriction conditions for the assertion.Gets all the conditions on the assertion.getConditions(QName typeOrName) Gets the list of conditions that match a particular QName.Get the date/time before which the assertion is invalid.Gets the date/time on, or after, which the assertion is invalid.Gets the OneTimeUse condition for the assertion.Gets an unmodifiable list of child elements in the order that they will appear in the DOM.Gets the ProxyRestriction condition for the assertion.voidsetNotBefore(Instant newNotBefore) Sets the date/time before which the assertion is invalid.voidsetNotOnOrAfter(Instant newNotOnOrAfter) Sets the date/time on, or after, which the assertion is invalid.Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.core.xml.XMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
conditions
A Condition. -
notBefore
Not Before conditions. -
notOnOrAfter
Not On Or After conditions.
-
-
Constructor Details
-
ConditionsImpl
protected ConditionsImpl(@Nullable String namespaceURI, @Nonnull String elementLocalName, @Nullable String namespacePrefix) Constructor.- Parameters:
namespaceURI- the namespace the element is inelementLocalName- the local name of the XML element this Object representsnamespacePrefix- the prefix for the given namespace
-
-
Method Details
-
getConditions
Gets all the conditions on the assertion.- Specified by:
getConditionsin interfaceConditions- Returns:
- all the conditions on the assertion
-
getConditions
Gets the list of conditions that match a particular QName.- Specified by:
getConditionsin interfaceConditions- Parameters:
typeOrName- the QName of the conditions to return- Returns:
- the list of conditions that match the specified QName
-
getAudienceRestrictions
Gets the audience restriction conditions for the assertion.- Specified by:
getAudienceRestrictionsin interfaceConditions- Returns:
- the audience restriction conditions for the assertion
-
getOneTimeUse
Gets the OneTimeUse condition for the assertion.- Specified by:
getOneTimeUsein interfaceConditions- Returns:
- the OneTimeUse condition for the assertion
-
getProxyRestriction
Gets the ProxyRestriction condition for the assertion.- Specified by:
getProxyRestrictionin interfaceConditions- Returns:
- the ProxyRestriction condition for the assertion
-
getNotBefore
Get the date/time before which the assertion is invalid.- Specified by:
getNotBeforein interfaceConditions- Returns:
- the date/time before which the assertion is invalid
-
setNotBefore
Sets the date/time before which the assertion is invalid.- Specified by:
setNotBeforein interfaceConditions- Parameters:
newNotBefore- the date/time before which the assertion is invalid
-
getNotOnOrAfter
Gets the date/time on, or after, which the assertion is invalid.- Specified by:
getNotOnOrAfterin interfaceConditions- Returns:
- the date/time on, or after, which the assertion is invalid
-
setNotOnOrAfter
Sets the date/time on, or after, which the assertion is invalid.- Specified by:
setNotOnOrAfterin interfaceConditions- Parameters:
newNotOnOrAfter- the date/time on, or after, which the assertion is invalid
-
getOrderedChildren
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildrenin interfaceXMLObject- Returns:
- ordered list of child elements
-