Class OneTimeUseImpl

    • Constructor Detail

      • OneTimeUseImpl

        public OneTimeUseImpl()
        Default constructor
      • OneTimeUseImpl

        public OneTimeUseImpl​(String xml)
                       throws SAML2Exception
        This constructor is used to build OneTimeUse object from a XML string.
        Parameters:
        xml - A java.lang.String representing a OneTimeUse object
        Throws:
        SAML2Exception - if it could not process the XML string
      • OneTimeUseImpl

        public OneTimeUseImpl​(Element element)
                       throws SAML2Exception
        This constructor is used to build OneTimeUse object from a block of existing XML that has already been built into a DOM.
        Parameters:
        element - A org.w3c.dom.Element representing DOM tree for OneTimeUse object
        Throws:
        SAML2Exception - if it could not process the Element
    • Method Detail

      • toXMLString

        public String toXMLString​(boolean includeNSPrefix,
                                  boolean declareNS)
                           throws SAML2Exception
        Returns a String representation
        Specified by:
        toXMLString in interface ConditionAbstract
        Parameters:
        includeNSPrefix - Determines whether or not the namespace qualifier is prepended to the Element when converted
        declareNS - Determines whether or not the namespace is declared within the Element.
        Returns:
        A String representation
        Throws:
        SAML2Exception - if something is wrong during conversion