Top Description Methods
org.bouncycastle.operator

public Interface DigestCalculator

Known Direct Implementers
org.bouncycastle.cert.bc.BcX509ExtensionUtils.SHA1DigestCalculator, org.bouncycastle.cert.dane.TruncatingDigestCalculator, org.bouncycastle.cert.jcajce.JcaX509ExtensionUtils.SHA1DigestCalculator
Imports
java.io.OutputStream, org.bouncycastle.asn1.x509.AlgorithmIdentifier

General interface for an operator that is able to calculate a digest from a stream of output.

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier

Returns:

algorithm id and parameters.
getAlgorithmIdentifier
()

Return the algorithm identifier representing the digest implemented by this calculator.

public byte[]

Returns:

a digest.
getDigest
()

Return the digest calculated on what has been written to the calculator's output stream.

public OutputStream

Returns:

an OutputStream
getOutputStream
()

Returns a stream that will accept data for the purpose of calculating a digest.

Method Detail

getAlgorithmIdentifierback to summary
public AlgorithmIdentifier getAlgorithmIdentifier()

Return the algorithm identifier representing the digest implemented by this calculator.

Returns:AlgorithmIdentifier

algorithm id and parameters.

getDigestback to summary
public byte[] getDigest()

Return the digest calculated on what has been written to the calculator's output stream.

Returns:byte[]

a digest.

getOutputStreamback to summary
public OutputStream getOutputStream()

Returns a stream that will accept data for the purpose of calculating a digest. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.

Returns:OutputStream

an OutputStream