public class Canonicalizer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static boolean |
_alreadyInitialized |
(package private) static java.util.Map |
_canonicalizerHash |
static java.lang.String |
ALGO_ID_C14N_EXCL_OMIT_COMMENTS
The URL defined in XML-SEC Rec for exclusive org.apache.axiom.c14n.impl without comments.
|
static java.lang.String |
ALGO_ID_C14N_EXCL_WITH_COMMENTS
The URL defined in XML-SEC Rec for exclusive org.apache.axiom.c14n.impl with comments.
|
static java.lang.String |
ALGO_ID_C14N_OMIT_COMMENTS
The URL defined in XML-SEC Rec for inclusive org.apache.axiom.c14n.impl without comments.
|
static java.lang.String |
ALGO_ID_C14N_WITH_COMMENTS
The URL defined in XML-SEC Rec for inclusive org.apache.axiom.c14n.impl with comments.
|
protected CanonicalizerSpi |
canonicalizerSpi |
| Modifier | Constructor and Description |
|---|---|
private |
Canonicalizer(java.lang.String algorithmURI)
Constructor Canonicalizer
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
canonicalize(byte[] inputBytes)
Method canonicalize
|
byte[] |
canonicalizeSubtree(OMElement element)
Canonicalizes the subtree rooted by
element. |
byte[] |
canonicalizeSubtree(OMElement element,
java.lang.String inclusiveNamespaces)
Canonicalizes the subtree rooted by
element. |
java.lang.String |
getImplementingCanonicalizerClass()
Method getImplementingCanonicalizerClss
|
private static java.lang.Class |
getImplementingClass(java.lang.String URI)
Method getImplementingClass
|
boolean |
getIncludeComments()
Method engineGetIncludeComments
|
static Canonicalizer |
getInstance(java.lang.String algorithmURI)
Method getInstance
|
java.lang.String |
getURI()
Method engineGetURI()
|
static void |
init()
Method init
|
void |
notReset()
Set the canonicalizator behaviour to not reset.
|
static void |
register(java.lang.String algorithmURI,
java.lang.String implementingClass)
Method register
|
void |
setWriter(java.io.OutputStream os)
Sets the writter where the cannocalization ends.
|
public static final java.lang.String ALGO_ID_C14N_OMIT_COMMENTS
public static final java.lang.String ALGO_ID_C14N_WITH_COMMENTS
public static final java.lang.String ALGO_ID_C14N_EXCL_OMIT_COMMENTS
public static final java.lang.String ALGO_ID_C14N_EXCL_WITH_COMMENTS
static boolean _alreadyInitialized
static java.util.Map _canonicalizerHash
protected CanonicalizerSpi canonicalizerSpi
private Canonicalizer(java.lang.String algorithmURI)
throws InvalidCanonicalizerException
algorithmURI - InvalidCanonicalizerExceptionpublic static void init()
public static final Canonicalizer getInstance(java.lang.String algorithmURI) throws InvalidCanonicalizerException
algorithmURI - InvalidCanonicalizerExceptionpublic static void register(java.lang.String algorithmURI,
java.lang.String implementingClass)
throws AlgorithmAlreadyRegisteredException
algorithmURI - implementingClass - AlgorithmAlreadyRegisteredExceptionpublic final java.lang.String getURI()
public boolean getIncludeComments()
public byte[] canonicalize(byte[] inputBytes)
throws CanonicalizationException
inputBytes - CanonicalizationExceptionpublic byte[] canonicalizeSubtree(OMElement element) throws CanonicalizationException
element.element - The element to canicalizeCanonicalizationExceptionpublic byte[] canonicalizeSubtree(OMElement element, java.lang.String inclusiveNamespaces) throws CanonicalizationException
element.element - inclusiveNamespaces - CanonicalizationExceptionpublic void setWriter(java.io.OutputStream os)
os - public java.lang.String getImplementingCanonicalizerClass()
CanonicalizerSpi classprivate static java.lang.Class getImplementingClass(java.lang.String URI)
URI - public void notReset()