public class DigestAlgorithmImplSHA1 extends DigestAlgorithm
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_ALGORITHM_URI_
The default algorithm URI for this algorithm implementation.
|
protected static java.lang.String |
SHA1_JCA_ALGID_
The identifier used for the SHA-1 algorithm within the
Java Cryptography
Architecture.
|
input_| Constructor and Description |
|---|
DigestAlgorithmImplSHA1()
Standard constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
digest()
Computes the digest for the input data previously specified by means of method
DigestAlgorithm.setInput(java.io.InputStream). |
org.w3c.dom.Element |
toElement(org.w3c.dom.Document signatureDOMDoc)
Returns the DOM element representation of the algorithm.
|
setInputgetURI, setParameters, setURIprotected static final java.lang.String DEFAULT_ALGORITHM_URI_
protected static final java.lang.String SHA1_JCA_ALGID_
public DigestAlgorithmImplSHA1()
http://www.w3.org/2000/09/xmldsig#sha1.public org.w3c.dom.Element toElement(org.w3c.dom.Document signatureDOMDoc)
throws AlgorithmException
toElement in class AlgorithmsignatureDOMDoc - The DOM document which should be used to create necessary DOM nodes.AlgorithmException - if no identifying URI has been specified for this algorithm.public java.io.InputStream digest()
throws AlgorithmException
DigestAlgorithm.setInput(java.io.InputStream).digest in class DigestAlgorithmAlgorithmException - if no input has been specified for the digest algorithm, or if computing
the message digest fails for any reason.