Class ConditionsImpl

java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.saml.saml1.core.impl.ConditionsImpl
All Implemented Interfaces:
XMLObject, SAMLObject, Conditions

public class ConditionsImpl extends AbstractXMLObject implements Conditions
This is a concrete implementation of the Conditions interface.
  • Field Details

    • notBefore

      private Instant notBefore
      Value saved in the NotBefore attribute.
    • notOnOrAfter

      private Instant notOnOrAfter
      Value saved in the NotOnOrAfter attribute.
    • conditions

      private final IndexedXMLObjectChildrenList<Condition> conditions
      Set containing all the Conditions.
  • Constructor Details

    • ConditionsImpl

      protected ConditionsImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - the namespace the element is in
      elementLocalName - the local name of the XML element this Object represents
      namespacePrefix - the prefix for the given namespace
  • Method Details

    • getNotBefore

      public Instant getNotBefore()
      Get the "not before" condition.
      Specified by:
      getNotBefore in interface Conditions
      Returns:
      the "not before" condition
    • setNotBefore

      public void setNotBefore(Instant dt)
      Set the "not before" condition.
      Specified by:
      setNotBefore in interface Conditions
      Parameters:
      dt - the "not before" condition
    • getNotOnOrAfter

      public Instant getNotOnOrAfter()
      Get the "not on or after" condition.
      Specified by:
      getNotOnOrAfter in interface Conditions
      Returns:
      the "not on or after" condition
    • setNotOnOrAfter

      public void setNotOnOrAfter(Instant dt)
      Set the "not on or after" condition.
      Specified by:
      setNotOnOrAfter in interface Conditions
      Parameters:
      dt - the "not on or after" condition
    • getConditions

      public List<Condition> getConditions()
      Get the conditions.
      Specified by:
      getConditions in interface Conditions
      Returns:
      the conditions
    • getConditions

      public List<Condition> getConditions(@Nonnull QName typeOrName)
      Get the conditions with the given schema type or element name.
      Specified by:
      getConditions in interface Conditions
      Parameters:
      typeOrName - the schema type or element name
      Returns:
      the matching conditions
    • getAudienceRestrictionConditions

      public List<AudienceRestrictionCondition> getAudienceRestrictionConditions()
      Get the audience restriction conditions.
      Specified by:
      getAudienceRestrictionConditions in interface Conditions
      Returns:
      the audience restriction conditions
    • getDoNotCacheConditions

      public List<DoNotCacheCondition> getDoNotCacheConditions()
      Get the "do not cache" conditions.
      Specified by:
      getDoNotCacheConditions in interface Conditions
      Returns:
      the "do not cache" conditions
    • getOrderedChildren

      public List<XMLObject> getOrderedChildren()
      Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
      Specified by:
      getOrderedChildren in interface XMLObject
      Returns:
      ordered list of child elements