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
Element interface
and can be used directly in a DOM tree.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringField _ATT_EC_PREFIXLISTstatic final StringField _TAG_EC_INCLUSIVENAMESPACESstatic final StringField ExclusiveCanonicalizationNamespaceFields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG -
Constructor Summary
ConstructorsConstructorDescriptionInclusiveNamespaces(Document doc, String prefixList) Constructor XPathContainerInclusiveNamespaces(Document doc, Set<String> prefixes) Constructor InclusiveNamespacesInclusiveNamespaces(Element element, String baseURI) Constructor InclusiveNamespaces -
Method Summary
Modifier and TypeMethodDescriptionMethod getBaseLocalName Returns the localname of the Elements of the sub-class.Method getBaseNamespace Returns the namespace of the Elements of the sub-class.Method getInclusiveNamespacesprefixStr2Set(String inclusiveNamespaces) Decodes theinclusiveNamespacesString and returns all selected namespace prefixes as a Set.Methods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
-
Field Details
-
_TAG_EC_INCLUSIVENAMESPACES
Field _TAG_EC_INCLUSIVENAMESPACES- See Also:
-
_ATT_EC_PREFIXLIST
Field _ATT_EC_PREFIXLIST- See Also:
-
ExclusiveCanonicalizationNamespace
Field ExclusiveCanonicalizationNamespace- See Also:
-
-
Constructor Details
-
InclusiveNamespaces
Constructor XPathContainer- Parameters:
doc-prefixList-
-
InclusiveNamespaces
Constructor InclusiveNamespaces- Parameters:
doc-prefixes-
-
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 Returns the namespace of the Elements of the sub-class.- Specified by:
getBaseNamespacein classElementProxy- Returns:
- the namespace of the Elements of the sub-class.
-
getBaseLocalName
Method getBaseLocalName Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalNamein classElementProxy- Returns:
- the localname of the Elements of the sub-class.
-