public class XMLSignatureInput
extends java.lang.Object
| Constructor and Description |
|---|
XMLSignatureInput(byte[] inputOctets)
Construct a XMLSignatureInput from an octet array.
|
XMLSignatureInput(java.io.InputStream inputOctetStream)
Constructs a
XMLSignatureInput from an octet stream. |
XMLSignatureInput(org.w3c.dom.Node rootNode)
Construct a XMLSignatureInput from a subtree rooted by rootNode.
|
XMLSignatureInput(java.util.Set<org.w3c.dom.Node> inputNodeSet)
Constructor XMLSignatureInput
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeFilter(NodeFilter filter) |
byte[] |
getBytes()
Returns the byte array from input which was specified as the parameter of
XMLSignatureInput constructor |
org.w3c.dom.Node |
getExcludeNode()
Gets the exclude node of this XMLSignatureInput
|
java.util.Set<org.w3c.dom.Node> |
getInputNodeSet()
Get the Input NodeSet.
|
java.lang.String |
getMIMEType()
Returns mimeType
|
java.util.List<NodeFilter> |
getNodeFilters() |
java.util.Set<org.w3c.dom.Node> |
getNodeSet()
Returns the node set from input which was specified as the parameter of
XMLSignatureInput constructor |
java.util.Set<org.w3c.dom.Node> |
getNodeSet(boolean circumvent)
Returns the node set from input which was specified as the parameter of
XMLSignatureInput constructor |
java.io.InputStream |
getOctetStream()
Returns the Octet stream(byte Stream) from input which was specified as
the parameter of
XMLSignatureInput constructor |
java.io.InputStream |
getOctetStreamReal() |
java.lang.String |
getSourceURI()
Return SourceURI
|
org.w3c.dom.Node |
getSubNode()
Gets the node of this XMLSignatureInput
|
boolean |
isByteArray()
Determines if the object has been set up with a ByteArray
|
boolean |
isElement()
Determines if the object has been set up with an Element
|
boolean |
isExcludeComments() |
boolean |
isInitialized()
Is the object correctly set up?
|
boolean |
isNeedsToBeExpanded()
Check if the structure needs to be expanded.
|
boolean |
isNodeSet()
Determines if the object has been set up with a Node set
|
boolean |
isOctetStream()
Determines if the object has been set up with an octet stream
|
boolean |
isOutputStreamSet()
Determines if
setOutputStream(java.io.OutputStream) has been called with a
non-null OutputStream. |
boolean |
isSecureValidation() |
void |
setExcludeComments(boolean excludeComments) |
void |
setExcludeNode(org.w3c.dom.Node excludeNode)
Sets the exclude node of this XMLSignatureInput
|
void |
setMIMEType(java.lang.String mimeType)
Sets mimeType
|
void |
setNeedsToBeExpanded(boolean needsToBeExpanded)
Set if the structure needs to be expanded.
|
void |
setNodeSet(boolean b) |
void |
setOutputStream(java.io.OutputStream os) |
void |
setSecureValidation(boolean secureValidation) |
void |
setSourceURI(java.lang.String sourceURI)
Sets SourceURI
|
java.lang.String |
toString()
Method toString
|
void |
updateOutputStream(java.io.OutputStream diOs) |
void |
updateOutputStream(java.io.OutputStream diOs,
boolean c14n11) |
public XMLSignatureInput(byte[] inputOctets)
This is a comfort method, which internally converts the byte[] array into an InputStream
NOTE: no defensive copy
inputOctets - an octet array which including XML document or nodepublic XMLSignatureInput(java.io.InputStream inputOctetStream)
XMLSignatureInput from an octet stream. The
stream is directly read.inputOctetStream - public XMLSignatureInput(org.w3c.dom.Node rootNode)
rootNode - public XMLSignatureInput(java.util.Set<org.w3c.dom.Node> inputNodeSet)
inputNodeSet - public boolean isNeedsToBeExpanded()
public void setNeedsToBeExpanded(boolean needsToBeExpanded)
needsToBeExpanded - true if so.public java.util.Set<org.w3c.dom.Node> getNodeSet()
throws CanonicalizationException,
javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
XMLSignatureInput constructororg.xml.sax.SAXExceptionjava.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionCanonicalizationExceptionpublic java.util.Set<org.w3c.dom.Node> getInputNodeSet()
public java.util.Set<org.w3c.dom.Node> getNodeSet(boolean circumvent)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException,
CanonicalizationException
XMLSignatureInput constructorcircumvent - org.xml.sax.SAXExceptionjava.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionCanonicalizationExceptionpublic java.io.InputStream getOctetStream()
throws java.io.IOException
XMLSignatureInput constructorXMLSignatureInput constructorjava.io.IOExceptionpublic java.io.InputStream getOctetStreamReal()
public byte[] getBytes()
throws java.io.IOException,
CanonicalizationException
XMLSignatureInput constructorXMLSignatureInput constructorCanonicalizationExceptionjava.io.IOExceptionpublic boolean isNodeSet()
public boolean isElement()
public boolean isOctetStream()
public boolean isOutputStreamSet()
setOutputStream(java.io.OutputStream) has been called with a
non-null OutputStream.setOutputStream(java.io.OutputStream) has been called with a
non-null OutputStreampublic boolean isByteArray()
public boolean isInitialized()
public java.lang.String getMIMEType()
public void setMIMEType(java.lang.String mimeType)
mimeType - public java.lang.String getSourceURI()
public void setSourceURI(java.lang.String sourceURI)
sourceURI - public java.lang.String toString()
toString in class java.lang.Objectpublic org.w3c.dom.Node getExcludeNode()
public void setExcludeNode(org.w3c.dom.Node excludeNode)
excludeNode - The excludeNode to set.public org.w3c.dom.Node getSubNode()
public boolean isExcludeComments()
public void setExcludeComments(boolean excludeComments)
excludeComments - The excludeComments to set.public void updateOutputStream(java.io.OutputStream diOs)
throws CanonicalizationException,
java.io.IOException
diOs - java.io.IOExceptionCanonicalizationExceptionpublic void updateOutputStream(java.io.OutputStream diOs,
boolean c14n11)
throws CanonicalizationException,
java.io.IOException
CanonicalizationExceptionjava.io.IOExceptionpublic void setOutputStream(java.io.OutputStream os)
os - public void addNodeFilter(NodeFilter filter)
filter - public java.util.List<NodeFilter> getNodeFilters()
public void setNodeSet(boolean b)
b - public boolean isSecureValidation()
public void setSecureValidation(boolean secureValidation)
Copyright © 2007–2023. All rights reserved.