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 theElement
interface and can be used directly in a DOM tree.- Author:
- Christian Geuer-Pollmann
-
-
Field Summary
Fields Modifier and Type Field Description static String
_ATT_EC_PREFIXLIST
Field _ATT_EC_PREFIXLISTstatic String
_TAG_EC_INCLUSIVENAMESPACES
Field _TAG_EC_INCLUSIVENAMESPACESstatic String
ExclusiveCanonicalizationNamespace
Field ExclusiveCanonicalizationNamespace-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, log
-
-
Constructor Summary
Constructors Constructor Description InclusiveNamespaces(Document doc, String prefixList)
Constructor XPathContainerInclusiveNamespaces(Document doc, Set<String> prefixes)
Constructor InclusiveNamespacesInclusiveNamespaces(Element element, String baseURI)
Constructor InclusiveNamespaces
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseLocalName()
Method getBaseLocalNameString
getBaseNamespace()
Method getBaseNamespaceString
getInclusiveNamespaces()
Method getInclusiveNamespacesstatic SortedSet<String>
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, 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 Detail
-
_TAG_EC_INCLUSIVENAMESPACES
public static final String _TAG_EC_INCLUSIVENAMESPACES
Field _TAG_EC_INCLUSIVENAMESPACES- See Also:
- Constant Field Values
-
_ATT_EC_PREFIXLIST
public static final String _ATT_EC_PREFIXLIST
Field _ATT_EC_PREFIXLIST- See Also:
- Constant Field Values
-
ExclusiveCanonicalizationNamespace
public static final String ExclusiveCanonicalizationNamespace
Field ExclusiveCanonicalizationNamespace- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InclusiveNamespaces
public InclusiveNamespaces(Document doc, String prefixList)
Constructor XPathContainer- Parameters:
doc
-prefixList
-
-
InclusiveNamespaces
public InclusiveNamespaces(Document doc, Set<String> prefixes)
Constructor InclusiveNamespaces- Parameters:
doc
-prefixes
-
-
InclusiveNamespaces
public InclusiveNamespaces(Element element, String baseURI) throws XMLSecurityException
Constructor InclusiveNamespaces- Parameters:
element
-baseURI
-- Throws:
XMLSecurityException
-
-
Method Detail
-
getInclusiveNamespaces
public String getInclusiveNamespaces()
Method getInclusiveNamespaces- Returns:
- The Inclusive Namespace string
-
prefixStr2Set
public static SortedSet<String> prefixStr2Set(String inclusiveNamespaces)
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
public String getBaseNamespace()
Method getBaseNamespace- Specified by:
getBaseNamespace
in classElementProxy
- Returns:
- the namespace of the Elements of the sub-class.
-
getBaseLocalName
public String getBaseLocalName()
Method getBaseLocalName- Specified by:
getBaseLocalName
in classElementProxy
- Returns:
- the localname of the Elements of the sub-class.
-
-