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, setOutputStreamprotected 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 TransformersetProperties in class TransformIdentityXMLSecurityExceptionpublic void setTransformer(Transformer transformer) throws XMLSecurityException
setTransformer in interface TransformersetTransformer in class TransformIdentityXMLSecurityExceptionprotected 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 TransformergetPreferredTransformMethod in class TransformIdentitypublic void transform(XMLSecEvent xmlSecEvent) throws XMLStreamException
transform in interface Transformertransform in class TransformIdentityXMLStreamExceptionpublic void transform(InputStream inputStream) throws XMLStreamException
transform in interface Transformertransform in class TransformIdentityXMLStreamExceptionpublic void doFinal()
throws XMLStreamException
doFinal in interface TransformerdoFinal in class TransformIdentityXMLStreamExceptionprotected static void outputAttrToWriter(String prefix, String name, String value, OutputStream writer, Map<String,byte[]> cache) throws IOException
IOExceptionprotected static void outputTextToWriter(String text, OutputStream writer) throws IOException
text - writer - writer where to write the thingsIOExceptionprotected static void outputTextToWriter(char[] text,
OutputStream writer)
throws IOException
IOExceptionprotected 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 thingsIOExceptionprotected 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 thingsIOExceptionCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.