Class C14nHelper
java.lang.Object
org.apache.xml.security.c14n.helper.C14nHelper
Temporary swapped static functions from the normalizer Section
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertNotRelativeNS
(Attr attr) This method throws an exception if the Attribute value contains a relative URI.static void
checkForRelativeNamespace
(Element ctxNode) This method throws a CanonicalizationException if the supplied Element contains any relative namespaces.static void
checkTraversability
(Document document) This method throws a CanonicalizationException if the supplied Document is not able to be traversed using a TreeWalker.static boolean
namespaceIsAbsolute
(String namespaceValue) Method namespaceIsAbsolutestatic boolean
namespaceIsAbsolute
(Attr namespace) Method namespaceIsAbsolutestatic boolean
namespaceIsRelative
(String namespaceValue) Method namespaceIsRelativestatic boolean
namespaceIsRelative
(Attr namespace) Method namespaceIsRelative
-
Method Details
-
namespaceIsRelative
Method namespaceIsRelative- Parameters:
namespace
-- Returns:
- true if the given namespace is relative.
-
namespaceIsRelative
Method namespaceIsRelative- Parameters:
namespaceValue
-- Returns:
- true if the given namespace is relative.
-
namespaceIsAbsolute
Method namespaceIsAbsolute- Parameters:
namespace
-- Returns:
- true if the given namespace is absolute.
-
namespaceIsAbsolute
Method namespaceIsAbsolute- Parameters:
namespaceValue
-- Returns:
- true if the given namespace is absolute.
-
assertNotRelativeNS
This method throws an exception if the Attribute value contains a relative URI.- Parameters:
attr
-- Throws:
CanonicalizationException
-
checkTraversability
This method throws a CanonicalizationException if the supplied Document is not able to be traversed using a TreeWalker.- Parameters:
document
-- Throws:
CanonicalizationException
-
checkForRelativeNamespace
This method throws a CanonicalizationException if the supplied Element contains any relative namespaces.- Parameters:
ctxNode
-- Throws:
CanonicalizationException
- See Also:
-