Interface CacheableSAMLObject

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Duration getCacheDuration()
      Gets the maximum time that this descriptor should be cached.
      void setCacheDuration​(Duration duration)
      Sets the maximum time that this descriptor should be cached.
      • Methods inherited from interface org.opensaml.core.xml.XMLObject

        detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
    • Field Detail

      • CACHE_DURATION_ATTRIB_NAME

        @Nonnull
        @NotEmpty
        static final String CACHE_DURATION_ATTRIB_NAME
        "cacheDuration" attribute name.
        See Also:
        Constant Field Values
      • CACHE_DURATION_ATTRIB_QNAME

        @Nonnull
        static final QName CACHE_DURATION_ATTRIB_QNAME
        "cacheDuration" attribute QName.
    • Method Detail

      • getCacheDuration

        @Nullable
        Duration getCacheDuration()
        Gets the maximum time that this descriptor should be cached.
        Returns:
        the maximum time that this descriptor should be cached
      • setCacheDuration

        void setCacheDuration​(@Nullable
                              Duration duration)
        Sets the maximum time that this descriptor should be cached.
        Parameters:
        duration - the maximum time that this descriptor should be cached