Class InclusiveNamespaces
java.lang.Object
org.apache.xml.security.utils.ElementProxy
org.apache.xml.security.transforms.params.InclusiveNamespaces
- All Implemented Interfaces:
TransformParam
This Object serves as Content for the ds:Transforms for exclusive
Canonicalization.
It implements the
It implements the
Element interface
and can be used directly in a DOM tree.- Author:
- Christian Geuer-Pollmann
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringField _ATT_EC_PREFIXLISTstatic final StringField _TAG_EC_INCLUSIVENAMESPACESstatic final StringField ExclusiveCanonicalizationNamespaceFields inherited from class ElementProxy
_baseURI, _constructionElement, _doc, _state, MODE_CREATE, MODE_DECRYPT, MODE_ENCRYPT, MODE_PROCESS, MODE_SIGN, MODE_UNKNOWN, MODE_VERIFY -
Constructor Summary
ConstructorsConstructorDescriptionInclusiveNamespaces(Document doc, String prefixList) Constructor XPathContainerInclusiveNamespaces(Document doc, Set prefixes) Constructor InclusiveNamespacesInclusiveNamespaces(Element element, String BaseURI) Constructor InclusiveNamespaces -
Method Summary
Modifier and TypeMethodDescriptionMethod getBaseLocalNameMethod getBaseNamespaceMethod getInclusiveNamespacesstatic SortedSetprefixStr2Set(String inclusiveNamespaces) Decodes theinclusiveNamespacesString and returns all selected namespace prefixes as a Set.Methods inherited from class ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addText, addTextElement, createElementForFamily, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, guaranteeThatElementInCorrectSpace, length, setDefaultPrefix, setElement, setXPathNamespaceContext
-
Field Details
-
_TAG_EC_INCLUSIVENAMESPACES
-
_ATT_EC_PREFIXLIST
-
ExclusiveCanonicalizationNamespace
Field ExclusiveCanonicalizationNamespace- See Also:
-
-
Constructor Details
-
InclusiveNamespaces
-
InclusiveNamespaces
-
InclusiveNamespaces
Constructor InclusiveNamespaces- Parameters:
element-BaseURI-- Throws:
XMLSecurityException
-
-
Method Details
-
getInclusiveNamespaces
Method getInclusiveNamespaces- Returns:
- The Inclusive Namespace string
-
prefixStr2Set
Decodes theinclusiveNamespacesString and returns all selected namespace prefixes as a Set. The#defaultnamespace token is represented as an empty namespace prefix ("xmlns").
The StringinclusiveNamespaces=" xenc ds #default"is returned as a Set containing the following Strings:xmlnsxencds
- Parameters:
inclusiveNamespaces-- Returns:
- A set to string
-
getBaseNamespace
Method getBaseNamespace- Specified by:
getBaseNamespacein classElementProxy- Returns:
- the namespace of the Elements of the sub-class.
-
getBaseLocalName
Method getBaseLocalName- Specified by:
getBaseLocalNamein classElementProxy- Returns:
- the localname of the Elements of the sub-class.
-