|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.cert.dane.TruncatingDigestCalculator
A calculator which produces a truncated digest from a regular one, with the truncation achieved by dropping off the right most octets.
Constructor Summary | |
TruncatingDigestCalculator(DigestCalculator baseCalculator)
Default constructor - truncate to 28. |
|
TruncatingDigestCalculator(DigestCalculator baseCalculator,
int length)
Constructor specifying a length. |
Method Summary | |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getAlgorithmIdentifier()
Return the algorithm identifier representing the digest implemented by this calculator. |
byte[] |
getDigest()
Return the digest calculated on what has been written to the calculator's output stream. |
java.io.OutputStream |
getOutputStream()
Returns a stream that will accept data for the purpose of calculating a digest. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TruncatingDigestCalculator(DigestCalculator baseCalculator)
baseCalculator
- actual calculator for working out the digest.public TruncatingDigestCalculator(DigestCalculator baseCalculator, int length)
baseCalculator
- actual calculator for working out the digest.length
- length in bytes of the final result.Method Detail |
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
DigestCalculator
getAlgorithmIdentifier
in interface DigestCalculator
public java.io.OutputStream getOutputStream()
DigestCalculator
getOutputStream
in interface DigestCalculator
public byte[] getDigest()
DigestCalculator
getDigest
in interface DigestCalculator
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |