Class ConditionsImpl

  • All Implemented Interfaces:
    org.opensaml.core.xml.XMLObject, org.opensaml.saml.common.SAMLObject, org.opensaml.saml.saml1.core.Conditions

    public class ConditionsImpl
    extends org.opensaml.core.xml.AbstractXMLObject
    implements org.opensaml.saml.saml1.core.Conditions
    This is a concrete implementation of the Conditions interface.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.opensaml.core.xml.util.IndexedXMLObjectChildrenList<org.opensaml.saml.saml1.core.Condition> conditions
      Set containing all the Conditions.
      private Instant notBefore
      Value saved in the NotBefore attribute.
      private Instant notOnOrAfter
      Value saved in the NotOnOrAfter attribute.
      • Fields inherited from interface org.opensaml.saml.saml1.core.Conditions

        DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, NOTBEFORE_ATTRIB_NAME, NOTBEFORE_ATTRIB_QNAME, NOTONORAFTER_ATTRIB_NAME, NOTONORAFTER_ATTRIB_QNAME, TYPE_LOCAL_NAME, TYPE_NAME
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ConditionsImpl​(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      List<org.opensaml.saml.saml1.core.AudienceRestrictionCondition> getAudienceRestrictionConditions()
      List<org.opensaml.saml.saml1.core.Condition> getConditions()
      List<org.opensaml.saml.saml1.core.Condition> getConditions​(QName typeOrName)
      List<org.opensaml.saml.saml1.core.DoNotCacheCondition> getDoNotCacheConditions()
      Instant getNotBefore()
      Instant getNotOnOrAfter()
      List<org.opensaml.core.xml.XMLObject> getOrderedChildren()
      void setNotBefore​(Instant dt)
      void setNotOnOrAfter​(Instant dt)
      • Methods inherited from class org.opensaml.core.xml.AbstractXMLObject

        detach, 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, setSchemaType
      • Methods inherited from interface org.opensaml.core.xml.XMLObject

        detach, 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 Detail

      • notBefore

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

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

        private final org.opensaml.core.xml.util.IndexedXMLObjectChildrenList<org.opensaml.saml.saml1.core.Condition> conditions
        Set containing all the Conditions.
    • Constructor Detail

      • 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 Detail

      • getNotBefore

        public Instant getNotBefore()
        Specified by:
        getNotBefore in interface org.opensaml.saml.saml1.core.Conditions
      • setNotBefore

        public void setNotBefore​(Instant dt)
        Specified by:
        setNotBefore in interface org.opensaml.saml.saml1.core.Conditions
      • getNotOnOrAfter

        public Instant getNotOnOrAfter()
        Specified by:
        getNotOnOrAfter in interface org.opensaml.saml.saml1.core.Conditions
      • setNotOnOrAfter

        public void setNotOnOrAfter​(Instant dt)
        Specified by:
        setNotOnOrAfter in interface org.opensaml.saml.saml1.core.Conditions
      • getConditions

        public List<org.opensaml.saml.saml1.core.Condition> getConditions()
        Specified by:
        getConditions in interface org.opensaml.saml.saml1.core.Conditions
      • getConditions

        public List<org.opensaml.saml.saml1.core.Condition> getConditions​(@Nonnull
                                                                          QName typeOrName)
        Specified by:
        getConditions in interface org.opensaml.saml.saml1.core.Conditions
      • getAudienceRestrictionConditions

        public List<org.opensaml.saml.saml1.core.AudienceRestrictionCondition> getAudienceRestrictionConditions()
        Specified by:
        getAudienceRestrictionConditions in interface org.opensaml.saml.saml1.core.Conditions
      • getDoNotCacheConditions

        public List<org.opensaml.saml.saml1.core.DoNotCacheCondition> getDoNotCacheConditions()
        Specified by:
        getDoNotCacheConditions in interface org.opensaml.saml.saml1.core.Conditions
      • getOrderedChildren

        public List<org.opensaml.core.xml.XMLObject> getOrderedChildren()
        Specified by:
        getOrderedChildren in interface org.opensaml.core.xml.XMLObject