public final class Digester
extends java.lang.Object
OCSPReqBuilder
needs a DigestCalculator
but BC doesn't
provide any public implementations of that interface. That's why we need to
write our own. There's a default SHA-1 implementation and one for SHA-256.
Which one to use will depend on the Certificate Authority (CA).限定符和类型 | 方法和说明 |
---|---|
AlgorithmIdentifier |
getAlgorithmIdentifier() |
byte[] |
getDigest() |
java.io.OutputStream |
getOutputStream() |
static DigestCalculator |
sha1() |
static DigestCalculator |
sha256() |