Class C14nHelper
- java.lang.Object
-
- org.apache.xml.security.c14n.helper.C14nHelper
-
public final class C14nHelper extends Object
Temporary swapped static functions from the normalizer Section- Author:
- Christian Geuer-Pollmann
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertNotRelativeNS(Attr attr)This method throws an exception if the Attribute value contains a relative URI.static voidcheckForRelativeNamespace(Element ctxNode)This method throws a CanonicalizationException if the supplied Element contains any relative namespaces.static voidcheckTraversability(Document document)This method throws a CanonicalizationException if the supplied Document is not able to be traversed using a TreeWalker.static booleannamespaceIsAbsolute(String namespaceValue)Method namespaceIsAbsolutestatic booleannamespaceIsAbsolute(Attr namespace)Method namespaceIsAbsolutestatic booleannamespaceIsRelative(String namespaceValue)Method namespaceIsRelativestatic booleannamespaceIsRelative(Attr namespace)Method namespaceIsRelative
-
-
-
Method Detail
-
namespaceIsRelative
public static boolean namespaceIsRelative(Attr namespace)
Method namespaceIsRelative- Parameters:
namespace-- Returns:
- true if the given namespace is relative.
-
namespaceIsRelative
public static boolean namespaceIsRelative(String namespaceValue)
Method namespaceIsRelative- Parameters:
namespaceValue-- Returns:
- true if the given namespace is relative.
-
namespaceIsAbsolute
public static boolean namespaceIsAbsolute(Attr namespace)
Method namespaceIsAbsolute- Parameters:
namespace-- Returns:
- true if the given namespace is absolute.
-
namespaceIsAbsolute
public static boolean namespaceIsAbsolute(String namespaceValue)
Method namespaceIsAbsolute- Parameters:
namespaceValue-- Returns:
- true if the given namespace is absolute.
-
assertNotRelativeNS
public static void assertNotRelativeNS(Attr attr) throws CanonicalizationException
This method throws an exception if the Attribute value contains a relative URI.- Parameters:
attr-- Throws:
CanonicalizationException
-
checkTraversability
public static void checkTraversability(Document document) throws CanonicalizationException
This method throws a CanonicalizationException if the supplied Document is not able to be traversed using a TreeWalker.- Parameters:
document-- Throws:
CanonicalizationException
-
checkForRelativeNamespace
public static void checkForRelativeNamespace(Element ctxNode) throws CanonicalizationException
This method throws a CanonicalizationException if the supplied Element contains any relative namespaces.- Parameters:
ctxNode-- Throws:
CanonicalizationException- See Also:
assertNotRelativeNS(Attr)
-
-