| Modifier and Type | Field and Description |
|---|---|
| private final DigestCalculator | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | TruncatingDigestCalculator(DigestCalculator
actual calculator for working out the digest. baseCalculator)Default constructor - truncate to 28. |
| public | TruncatingDigestCalculator(DigestCalculator
actual calculator for working out the digest. baseCalculator, int length in bytes of the final result. length)Constructor specifying a length. |
| Modifier and Type | Method and Description |
|---|---|
| public AlgorithmIdentifier | getAlgorithmIdentifier()
Implements org. Return the algorithm identifier representing the digest implemented by this calculator. |
| public byte[] | getDigest()
Implements org. Return the digest calculated on what has been written to the calculator's output stream. |
| public OutputStream | getOutputStream()
Implements org. Returns a stream that will accept data for the purpose of calculating a digest. |
| baseCalculator | back to summary |
|---|---|
| private final DigestCalculator baseCalculator | |
| length | back to summary |
|---|---|
| private final int length | |
| TruncatingDigestCalculator | back to summary |
|---|---|
| public TruncatingDigestCalculator(DigestCalculator baseCalculator) Default constructor - truncate to 28.
| |
| TruncatingDigestCalculator | back to summary |
|---|---|
| public TruncatingDigestCalculator(DigestCalculator baseCalculator, int length) Constructor specifying a length.
| |
| getAlgorithmIdentifier | back to summary |
|---|---|
| public AlgorithmIdentifier getAlgorithmIdentifier() Implements org. Doc from org. Return the algorithm identifier representing the digest implemented by this calculator.
| |
| getDigest | back to summary |
|---|---|
| public byte[] getDigest() Implements org. Doc from org. Return the digest calculated on what has been written to the calculator's output stream.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() Implements org. Doc from org. 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.
| |