Module org.apache.santuario.xmlsec
Class XMLSignatureDigestInput
- java.lang.Object
-
- org.apache.xml.security.signature.XMLSignatureInput
-
- org.apache.xml.security.signature.XMLSignatureDigestInput
-
public class XMLSignatureDigestInput extends XMLSignatureInput
The XMLSignature Input as a precomputed digest. That can be retrieved viagetPreCalculatedDigest(), all other methods are unuseful.
-
-
Constructor Summary
Constructors Constructor Description XMLSignatureDigestInput(String base64Digest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NodeconvertToNode()StringgetPreCalculatedDigest()InputStreamgetUnprocessedInput()booleanhasUnprocessedInput()voidwrite(OutputStream diOs, boolean c14n11)Writes the data to the output stream.-
Methods inherited from class org.apache.xml.security.signature.XMLSignatureInput
addNodeFilter, canonicalize, getBytes, getExcludeNode, getInputNodeSet, getMIMEType, getNodeFilters, getNodeSet, getOutputStream, getSourceURI, getSubNode, isElement, isExcludeComments, isNeedsToBeExpanded, isNodeSet, isOutputStreamSet, isSecureValidation, setExcludeComments, setExcludeNode, setMIMEType, setNeedsToBeExpanded, setNodeSet, setOutputStream, setSecureValidation, setSourceURI, toString, write
-
-
-
-
Constructor Detail
-
XMLSignatureDigestInput
public XMLSignatureDigestInput(String base64Digest)
- Parameters:
base64Digest-
-
-
Method Detail
-
hasUnprocessedInput
public boolean hasUnprocessedInput()
- Specified by:
hasUnprocessedInputin classXMLSignatureInput- Returns:
- true if this instance still can provide the unprocessed input
which was specified as the parameter of
XMLSignatureInput
-
getUnprocessedInput
public InputStream getUnprocessedInput()
- Specified by:
getUnprocessedInputin classXMLSignatureInput- Returns:
- the
InputStreamfrom input which was specified as the parameter ofXMLSignatureInputconstructor
-
convertToNode
protected Node convertToNode()
- Specified by:
convertToNodein classXMLSignatureInput- Returns:
- data given in constructor converted to a
Nodeor null if such conversion is not supported by thisXMLSignatureInput
-
write
public void write(OutputStream diOs, boolean c14n11)
Description copied from class:XMLSignatureInputWrites the data to the output stream.- Specified by:
writein classXMLSignatureInput- See Also:
- XmlDSig-Core Reference Generation
-
getPreCalculatedDigest
public String getPreCalculatedDigest()
- Overrides:
getPreCalculatedDigestin classXMLSignatureInput- Returns:
- String given through constructor. Null by default, see extensions of this class.
-
-