public abstract class CanonicalizerBase extends TransformIdentity
Modifier and Type | Class and Description |
---|---|
static class |
CanonicalizerBase.C14NStack<E> |
Modifier and Type | Field and Description |
---|---|
protected static char |
DOUBLEPOINT |
protected boolean |
firstCall |
protected static String |
XML |
protected static String |
XMLNS |
Constructor and Description |
---|
CanonicalizerBase(boolean includeComments) |
Modifier and Type | Method and Description |
---|---|
void |
doFinal() |
protected List<XMLSecAttribute> |
getCurrentUtilizedAttributes(XMLSecStartElement xmlSecStartElement,
CanonicalizerBase.C14NStack<XMLSecEvent> outputStack) |
protected List<XMLSecNamespace> |
getCurrentUtilizedNamespaces(XMLSecStartElement xmlSecStartElement,
CanonicalizerBase.C14NStack<XMLSecEvent> outputStack) |
protected List<XMLSecAttribute> |
getInitialUtilizedAttributes(XMLSecStartElement xmlSecStartElement,
CanonicalizerBase.C14NStack<XMLSecEvent> outputStack) |
protected List<XMLSecNamespace> |
getInitialUtilizedNamespaces(XMLSecStartElement xmlSecStartElement,
CanonicalizerBase.C14NStack<XMLSecEvent> outputStack) |
XMLSecurityConstants.TransformMethod |
getPreferredTransformMethod(XMLSecurityConstants.TransformMethod forInput) |
protected static void |
outputAttrToWriter(String prefix,
String name,
String value,
OutputStream writer,
Map<String,byte[]> cache) |
protected static void |
outputCommentToWriter(XMLSecComment currentComment,
OutputStream writer,
org.apache.xml.security.stax.impl.transformer.canonicalizer.CanonicalizerBase.DocumentLevel position)
Method outputCommentToWriter
|
protected static void |
outputPItoWriter(XMLSecProcessingInstruction currentPI,
OutputStream writer,
org.apache.xml.security.stax.impl.transformer.canonicalizer.CanonicalizerBase.DocumentLevel position)
Outputs a PI to the internal Writer.
|
protected static void |
outputTextToWriter(char[] text,
OutputStream writer) |
protected static void |
outputTextToWriter(String text,
OutputStream writer)
Outputs a Text of CDATA section to the internal Writer.
|
void |
setProperties(Map<String,Object> properties) |
void |
setTransformer(Transformer transformer) |
void |
transform(InputStream inputStream) |
void |
transform(XMLSecEvent xmlSecEvent) |
getOutputStream, getTransformer, getXmlEventWriterForOutputStream, getXmlInputFactory, getXmlOutputFactory, setOutputStream
protected static final String XML
protected static final String XMLNS
protected static final char DOUBLEPOINT
protected boolean firstCall
public void setProperties(Map<String,Object> properties) throws XMLSecurityException
setProperties
in interface Transformer
setProperties
in class TransformIdentity
XMLSecurityException
public void setTransformer(Transformer transformer) throws XMLSecurityException
setTransformer
in interface Transformer
setTransformer
in class TransformIdentity
XMLSecurityException
protected List<XMLSecNamespace> getCurrentUtilizedNamespaces(XMLSecStartElement xmlSecStartElement, CanonicalizerBase.C14NStack<XMLSecEvent> outputStack)
protected List<XMLSecAttribute> getCurrentUtilizedAttributes(XMLSecStartElement xmlSecStartElement, CanonicalizerBase.C14NStack<XMLSecEvent> outputStack)
protected List<XMLSecNamespace> getInitialUtilizedNamespaces(XMLSecStartElement xmlSecStartElement, CanonicalizerBase.C14NStack<XMLSecEvent> outputStack)
protected List<XMLSecAttribute> getInitialUtilizedAttributes(XMLSecStartElement xmlSecStartElement, CanonicalizerBase.C14NStack<XMLSecEvent> outputStack)
public XMLSecurityConstants.TransformMethod getPreferredTransformMethod(XMLSecurityConstants.TransformMethod forInput)
getPreferredTransformMethod
in interface Transformer
getPreferredTransformMethod
in class TransformIdentity
public void transform(XMLSecEvent xmlSecEvent) throws XMLStreamException
transform
in interface Transformer
transform
in class TransformIdentity
XMLStreamException
public void transform(InputStream inputStream) throws XMLStreamException
transform
in interface Transformer
transform
in class TransformIdentity
XMLStreamException
public void doFinal() throws XMLStreamException
doFinal
in interface Transformer
doFinal
in class TransformIdentity
XMLStreamException
protected static void outputAttrToWriter(String prefix, String name, String value, OutputStream writer, Map<String,byte[]> cache) throws IOException
IOException
protected static void outputTextToWriter(String text, OutputStream writer) throws IOException
text
- writer
- writer where to write the thingsIOException
protected static void outputTextToWriter(char[] text, OutputStream writer) throws IOException
IOException
protected static void outputPItoWriter(XMLSecProcessingInstruction currentPI, OutputStream writer, org.apache.xml.security.stax.impl.transformer.canonicalizer.CanonicalizerBase.DocumentLevel position) throws IOException
currentPI
- writer
- where to write the thingsIOException
protected static void outputCommentToWriter(XMLSecComment currentComment, OutputStream writer, org.apache.xml.security.stax.impl.transformer.canonicalizer.CanonicalizerBase.DocumentLevel position) throws IOException
currentComment
- writer
- writer where to write the thingsIOException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.