Class CanonicalizerBase
java.lang.Object
org.apache.xml.security.stax.impl.transformer.TransformIdentity
org.apache.xml.security.stax.impl.transformer.canonicalizer.CanonicalizerBase
- All Implemented Interfaces:
Transformer
- Direct Known Subclasses:
Canonicalizer11,Canonicalizer20010315,Canonicalizer20010315_Excl
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFinal()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) protected static voidoutputAttrToWriter(String prefix, String name, String value, OutputStream writer, Map<String, byte[]> CACHE) protected static voidoutputCommentToWriter(XMLSecComment currentComment, OutputStream writer, org.apache.xml.security.stax.impl.transformer.canonicalizer.CanonicalizerBase.DocumentLevel position) Method outputCommentToWriterprotected static voidoutputPItoWriter(XMLSecProcessingInstruction currentPI, OutputStream writer, org.apache.xml.security.stax.impl.transformer.canonicalizer.CanonicalizerBase.DocumentLevel position) Outputs a PI to the internal Writer.protected static voidoutputTextToWriter(char[] text, OutputStream writer) protected static voidoutputTextToWriter(String text, OutputStream writer) Outputs a Text of CDATA section to the internal Writer.voidsetProperties(Map<String, Object> properties) voidsetTransformer(Transformer transformer) voidtransform(InputStream inputStream) voidtransform(XMLSecEvent xmlSecEvent) Methods inherited from class org.apache.xml.security.stax.impl.transformer.TransformIdentity
getOutputStream, getTransformer, getXmlEventWriterForOutputStream, getXmlInputFactory, getXmlOutputFactory, setOutputStream
-
Field Details
-
XML
- See Also:
-
XMLNS
- See Also:
-
DOUBLEPOINT
protected static final char DOUBLEPOINT- See Also:
-
firstCall
protected boolean firstCall
-
-
Constructor Details
-
CanonicalizerBase
public CanonicalizerBase(boolean includeComments)
-
-
Method Details
-
setProperties
- Specified by:
setPropertiesin interfaceTransformer- Overrides:
setPropertiesin classTransformIdentity- Throws:
XMLSecurityException
-
setTransformer
- Specified by:
setTransformerin interfaceTransformer- Overrides:
setTransformerin classTransformIdentity- Throws:
XMLSecurityException
-
getCurrentUtilizedNamespaces
protected List<XMLSecNamespace> getCurrentUtilizedNamespaces(XMLSecStartElement xmlSecStartElement, CanonicalizerBase.C14NStack<XMLSecEvent> outputStack) -
getCurrentUtilizedAttributes
protected List<XMLSecAttribute> getCurrentUtilizedAttributes(XMLSecStartElement xmlSecStartElement, CanonicalizerBase.C14NStack<XMLSecEvent> outputStack) -
getInitialUtilizedNamespaces
protected List<XMLSecNamespace> getInitialUtilizedNamespaces(XMLSecStartElement xmlSecStartElement, CanonicalizerBase.C14NStack<XMLSecEvent> outputStack) -
getInitialUtilizedAttributes
protected List<XMLSecAttribute> getInitialUtilizedAttributes(XMLSecStartElement xmlSecStartElement, CanonicalizerBase.C14NStack<XMLSecEvent> outputStack) -
getPreferredTransformMethod
public XMLSecurityConstants.TransformMethod getPreferredTransformMethod(XMLSecurityConstants.TransformMethod forInput) - Specified by:
getPreferredTransformMethodin interfaceTransformer- Overrides:
getPreferredTransformMethodin classTransformIdentity
-
transform
- Specified by:
transformin interfaceTransformer- Overrides:
transformin classTransformIdentity- Throws:
XMLStreamException
-
transform
- Specified by:
transformin interfaceTransformer- Overrides:
transformin classTransformIdentity- Throws:
XMLStreamException
-
doFinal
- Specified by:
doFinalin interfaceTransformer- Overrides:
doFinalin classTransformIdentity- Throws:
XMLStreamException
-
outputAttrToWriter
protected static void outputAttrToWriter(String prefix, String name, String value, OutputStream writer, Map<String, byte[]> CACHE) throws IOException- Throws:
IOException
-
outputTextToWriter
Outputs a Text of CDATA section to the internal Writer.- Parameters:
text-writer- writer where to write the things- Throws:
IOException
-
outputTextToWriter
- Throws:
IOException
-
outputPItoWriter
protected static void outputPItoWriter(XMLSecProcessingInstruction currentPI, OutputStream writer, org.apache.xml.security.stax.impl.transformer.canonicalizer.CanonicalizerBase.DocumentLevel position) throws IOException Outputs a PI to the internal Writer.- Parameters:
currentPI-writer- where to write the things- Throws:
IOException
-
outputCommentToWriter
protected static void outputCommentToWriter(XMLSecComment currentComment, OutputStream writer, org.apache.xml.security.stax.impl.transformer.canonicalizer.CanonicalizerBase.DocumentLevel position) throws IOException Method outputCommentToWriter- Parameters:
currentComment-writer- writer where to write the things- Throws:
IOException
-