Interface Conditions

  • All Superinterfaces:
    SAMLObject, org.opensaml.core.xml.XMLObject

    public interface Conditions
    extends SAMLObject
    This interface defines how the object representing a SAML1 Conditions element behaves.
    • Field Detail

      • DEFAULT_ELEMENT_LOCAL_NAME

        static final String DEFAULT_ELEMENT_LOCAL_NAME
        Element name, no namespace.
        See Also:
        Constant Field Values
      • DEFAULT_ELEMENT_NAME

        static final QName DEFAULT_ELEMENT_NAME
        Default element name.
      • TYPE_NAME

        static final QName TYPE_NAME
        QName of the XSI type.
      • NOTBEFORE_ATTRIB_QNAME

        static final QName NOTBEFORE_ATTRIB_QNAME
        QName for the NotBefore attribute.
      • NOTONORAFTER_ATTRIB_NAME

        static final String NOTONORAFTER_ATTRIB_NAME
        Name for the NotOnOrAfter attribute.
        See Also:
        Constant Field Values
      • NOTONORAFTER_ATTRIB_QNAME

        static final QName NOTONORAFTER_ATTRIB_QNAME
        QName for the NotOnOrAfter attribute.
    • Method Detail

      • getNotBefore

        Instant getNotBefore()
        Get the "not before" condition.
        Returns:
        the "not before" condition
      • setNotBefore

        void setNotBefore​(Instant notBefore)
        Set the "not before" condition.
        Parameters:
        notBefore - the "not before" condition
      • getNotOnOrAfter

        Instant getNotOnOrAfter()
        Get the "not on or after" condition.
        Returns:
        the "not on or after" condition
      • setNotOnOrAfter

        void setNotOnOrAfter​(Instant notOnOrAfter)
        Set the "not on or after" condition.
        Parameters:
        notOnOrAfter - the "not on or after" condition
      • getConditions

        List<Condition> getConditions()
        Get the conditions.
        Returns:
        the conditions
      • getConditions

        List<Condition> getConditions​(QName typeOrName)
        Get the conditions with the given schema type or element name.
        Parameters:
        typeOrName - the schema type or element name
        Returns:
        the matching conditions
      • getAudienceRestrictionConditions

        List<AudienceRestrictionCondition> getAudienceRestrictionConditions()
        Get the audience restriction conditions.
        Returns:
        the audience restriction conditions
      • getDoNotCacheConditions

        List<DoNotCacheCondition> getDoNotCacheConditions()
        Get the "do not cache" conditions.
        Returns:
        the "do not cache" conditions