Class InclusiveNamespaces

java.lang.Object
org.apache.xml.security.utils.ElementProxy
org.apache.xml.security.transforms.params.InclusiveNamespaces
All Implemented Interfaces:
TransformParam

public class InclusiveNamespaces extends ElementProxy implements TransformParam
This Object serves as Content for the ds:Transforms for exclusive Canonicalization.
It implements the Element interface and can be used directly in a DOM tree.
Author:
Christian Geuer-Pollmann
  • Field Details

    • _TAG_EC_INCLUSIVENAMESPACES

      public static final String _TAG_EC_INCLUSIVENAMESPACES
      Field _TAG_EC_INCLUSIVENAMESPACES
      See Also:
    • _ATT_EC_PREFIXLIST

      public static final String _ATT_EC_PREFIXLIST
      Field _ATT_EC_PREFIXLIST
      See Also:
    • ExclusiveCanonicalizationNamespace

      public static final String ExclusiveCanonicalizationNamespace
      Field ExclusiveCanonicalizationNamespace
      See Also:
  • Constructor Details

    • InclusiveNamespaces

      public InclusiveNamespaces(Document doc, String prefixList)
      Constructor XPathContainer
      Parameters:
      doc -
      prefixList -
    • InclusiveNamespaces

      public InclusiveNamespaces(Document doc, Set prefixes)
      Constructor InclusiveNamespaces
      Parameters:
      doc -
      prefixes -
    • InclusiveNamespaces

      public InclusiveNamespaces(Element element, String BaseURI) throws XMLSecurityException
      Constructor InclusiveNamespaces
      Parameters:
      element -
      BaseURI -
      Throws:
      XMLSecurityException
  • Method Details

    • getInclusiveNamespaces

      public String getInclusiveNamespaces()
      Method getInclusiveNamespaces
      Returns:
      The Inclusive Namespace string
    • prefixStr2Set

      public static SortedSet prefixStr2Set(String inclusiveNamespaces)
      Decodes the inclusiveNamespaces String and returns all selected namespace prefixes as a Set. The #default namespace token is represented as an empty namespace prefix ("xmlns").
      The String inclusiveNamespaces=" xenc ds #default" is returned as a Set containing the following Strings:
      • xmlns
      • xenc
      • ds
      Parameters:
      inclusiveNamespaces -
      Returns:
      A set to string
    • getBaseNamespace

      public String getBaseNamespace()
      Method getBaseNamespace
      Specified by:
      getBaseNamespace in class ElementProxy
      Returns:
      the namespace of the Elements of the sub-class.
    • getBaseLocalName

      public String getBaseLocalName()
      Method getBaseLocalName
      Specified by:
      getBaseLocalName in class ElementProxy
      Returns:
      the localname of the Elements of the sub-class.