Transformer
Canonicalizer11
, Canonicalizer20010315
, Canonicalizer20010315_Excl
public abstract class CanonicalizerBase extends TransformIdentity
Modifier and Type | Class | Description |
---|---|---|
static class |
CanonicalizerBase.C14NStack<E> |
Modifier and Type | Field | Description |
---|---|---|
protected static char |
DOUBLEPOINT |
|
protected boolean |
firstCall |
|
protected static String |
XML |
|
protected static String |
XMLNS |
Constructor | Description |
---|---|
CanonicalizerBase(boolean includeComments) |
Modifier and Type | Method | 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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–2018 The Apache Software Foundation. All rights reserved.