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 String
Field _ATT_EC_PREFIXLISTstatic final String
Field _TAG_EC_INCLUSIVENAMESPACESstatic final String
Field ExclusiveCanonicalizationNamespaceFields inherited from class org.apache.xml.security.utils.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 SortedSet
prefixStr2Set
(String inclusiveNamespaces) Decodes theinclusiveNamespaces
String and returns all selected namespace prefixes as a Set.Methods inherited from class org.apache.xml.security.utils.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
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 theinclusiveNamespaces
String and returns all selected namespace prefixes as a Set. The#default
namespace token is represented as an empty namespace prefix ("xmlns"
).
The StringinclusiveNamespaces=" xenc ds #default"
is returned as a Set containing the following Strings:xmlns
xenc
ds
- Parameters:
inclusiveNamespaces
-- Returns:
- A set to string
-
getBaseNamespace
Method getBaseNamespace- Specified by:
getBaseNamespace
in classElementProxy
- Returns:
- the namespace of the Elements of the sub-class.
-
getBaseLocalName
Method getBaseLocalName- Specified by:
getBaseLocalName
in classElementProxy
- Returns:
- the localname of the Elements of the sub-class.
-