public class Canonicalizer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALGO_ID_C14N_EXCL_OMIT_COMMENTS
The URL defined in XML-SEC Rec for exclusive org.apache.axiom.c14n.impl without comments.
|
static String |
ALGO_ID_C14N_EXCL_WITH_COMMENTS
The URL defined in XML-SEC Rec for exclusive org.apache.axiom.c14n.impl with comments.
|
static String |
ALGO_ID_C14N_OMIT_COMMENTS
The URL defined in XML-SEC Rec for inclusive org.apache.axiom.c14n.impl without comments.
|
static 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 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,
String inclusiveNamespaces)
Canonicalizes the subtree rooted by
element . |
String |
getImplementingCanonicalizerClass()
Method getImplementingCanonicalizerClss
|
boolean |
getIncludeComments()
Method engineGetIncludeComments
|
static Canonicalizer |
getInstance(String algorithmURI)
Method getInstance
|
String |
getURI()
Method engineGetURI()
|
static void |
init()
Method init
|
void |
notReset()
Set the canonicalizator behaviour to not reset.
|
static void |
register(String algorithmURI,
String implementingClass)
Method register
|
void |
setWriter(OutputStream os)
Sets the writter where the cannocalization ends.
|
public static final String ALGO_ID_C14N_OMIT_COMMENTS
public static final String ALGO_ID_C14N_WITH_COMMENTS
public static final String ALGO_ID_C14N_EXCL_OMIT_COMMENTS
public static final String ALGO_ID_C14N_EXCL_WITH_COMMENTS
protected CanonicalizerSpi canonicalizerSpi
public static void init()
public static final Canonicalizer getInstance(String algorithmURI) throws InvalidCanonicalizerException
algorithmURI
- InvalidCanonicalizerException
public static void register(String algorithmURI, String implementingClass) throws AlgorithmAlreadyRegisteredException
algorithmURI
- implementingClass
- AlgorithmAlreadyRegisteredException
public final String getURI()
public boolean getIncludeComments()
public byte[] canonicalize(byte[] inputBytes) throws CanonicalizationException
inputBytes
- CanonicalizationException
public byte[] canonicalizeSubtree(OMElement element) throws CanonicalizationException
element
.element
- The element to canicalizeCanonicalizationException
public byte[] canonicalizeSubtree(OMElement element, String inclusiveNamespaces) throws CanonicalizationException
element
.element
- inclusiveNamespaces
- CanonicalizationException
public void setWriter(OutputStream os)
os
- public String getImplementingCanonicalizerClass()
CanonicalizerSpi
classpublic void notReset()
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.