|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xml.security.signature.XMLSignatureInput
Class XMLSignatureInput
| Constructor Summary | |
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 inputNodeSet)
Constructor XMLSignatureInput |
|
XMLSignatureInput(java.lang.String inputStr)
Deprecated. |
|
XMLSignatureInput(java.lang.String inputStr,
java.lang.String encoding)
Deprecated. |
|
| Method Summary | |
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.lang.String |
getHTMLRepresentation()
Method getHTMLRepresentation |
java.lang.String |
getHTMLRepresentation(java.util.Set inclusiveNamespaces)
Method getHTMLRepresentation |
java.lang.String |
getMIMEType()
Returns MIMEType |
java.util.List |
getNodeFilters()
|
java.util.Set |
getNodeSet()
Returns the node set from input which was specified as the parameter of XMLSignatureInput constructor |
java.util.Set |
getNodeSet(boolean circunvent)
Returns the node set from input which was specified as the parameter of XMLSignatureInput constructor |
java.io.InputStream |
getOctetStream()
Returns the Octect stream(byte Stream) from input which was specified as the parameter of XMLSignatureInput constructor |
java.io.InputStream |
getOctetStreamReal()
|
protected java.io.InputStream |
getResetableInputStream()
|
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 structured is needed to be circumbented. |
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 |
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 structured is needed to be circumbented. |
void |
setNodeSet(boolean b)
|
void |
setOutputStream(java.io.OutputStream os)
|
void |
setSourceURI(java.lang.String SourceURI)
Sets SourceURI |
java.lang.String |
toString()
Method toString |
void |
updateOutputStream(java.io.OutputStream diOs)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
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(java.lang.String inputStr)
This is a comfort method, which internally converts the String into a byte[] array using the String.getBytes() method.
inputStr - the input String which including XML document or node
public XMLSignatureInput(java.lang.String inputStr,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
This is a comfort method, which internally converts the String into a byte[] array using the String.getBytes() method.
inputStr - the input String with encoding encodingencoding - the encoding of inputStr
java.io.UnsupportedEncodingExceptionpublic XMLSignatureInput(org.w3c.dom.Node rootNode)
rootNode - public XMLSignatureInput(java.util.Set inputNodeSet)
inputNodeSet - | Method Detail |
public boolean isNeedsToBeExpanded()
public void setNeedsToBeExpanded(boolean needsToBeExpanded)
needsToBeExpanded - true if so.
public java.util.Set getNodeSet()
throws CanonicalizationException,
javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
XMLSignatureInput constructor
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
CanonicalizationException
CanonicalizationException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public java.util.Set getNodeSet(boolean circunvent)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException,
CanonicalizationException
XMLSignatureInput constructor
circunvent -
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
CanonicalizationException
CanonicalizationException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public java.io.InputStream getOctetStream()
throws java.io.IOException
XMLSignatureInput constructor
XMLSignatureInput constructor
java.io.IOExceptionpublic java.io.InputStream getOctetStreamReal()
public byte[] getBytes()
throws java.io.IOException,
CanonicalizationException
XMLSignatureInput constructor
XMLSignatureInput constructor
CanonicalizationException
java.io.IOExceptionpublic boolean isNodeSet()
public boolean isElement()
public boolean isOctetStream()
public 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()
public java.lang.String getHTMLRepresentation()
throws XMLSignatureException
XMLSignatureException
public java.lang.String getHTMLRepresentation(java.util.Set inclusiveNamespaces)
throws XMLSignatureException
inclusiveNamespaces -
XMLSignatureExceptionpublic 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.IOException
CanonicalizationExceptionpublic void setOutputStream(java.io.OutputStream os)
os -
protected java.io.InputStream getResetableInputStream()
throws java.io.IOException
java.io.IOExceptionpublic void addNodeFilter(NodeFilter filter)
filter - public java.util.List getNodeFilters()
public void setNodeSet(boolean b)
b -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||