Class ExtensionsImpl

  • All Implemented Interfaces:
    Extensions

    public class ExtensionsImpl
    extends Object
    implements Extensions
    The class defines methods for adding protcol message extension elements.
    • Constructor Detail

      • ExtensionsImpl

        public ExtensionsImpl()
        Constructor to create the Extensions Object.
      • ExtensionsImpl

        public ExtensionsImpl​(Element element)
                       throws SAML2Exception
        Constructor to create the Extensions Object.
        Parameters:
        element - the Document Element of Extensions object.
        Throws:
        SAML2Exception - if Extensions cannot be created.
      • ExtensionsImpl

        public ExtensionsImpl​(String xmlString)
                       throws SAML2Exception
        Constructor to create the Extensions Object.
        Parameters:
        xmlString - the XML String representation of this object.
        Throws:
        SAML2Exception - if Extensions cannot be created.
    • Method Detail

      • getAny

        public List getAny()
        Returns the list of Extensions object.
        Specified by:
        getAny in interface Extensions
        Returns:
        a List of XML Strings Extensions objects.
        See Also:
        setAny(List)
      • toXMLString

        public String toXMLString​(boolean includeNSPrefix,
                                  boolean declareNS)
                           throws SAML2Exception
        Returns a String representation of this object.
        Specified by:
        toXMLString in interface Extensions
        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:
        the String representation of this Object.
        Throws:
        SAML2Exception - if cannot convert to String.
      • makeImmutable

        public void makeImmutable()
        Makes this object immutable.
        Specified by:
        makeImmutable in interface Extensions
      • isMutable

        public boolean isMutable()
        Returns value true if object is mutable.
        Specified by:
        isMutable in interface Extensions
        Returns:
        true if object is mutable.