public static class PrivateKeyCallback.DigestRequest extends java.lang.Object implements PrivateKeyCallback.Request
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
theAlgorithm |
private byte[] |
theDigest |
| Constructor and Description |
|---|
DigestRequest(byte[] digest,
java.lang.String algorithm)
Constructs a DigestRequest with a digest value and algorithm identifier.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm() |
byte[] |
getDigest() |
public DigestRequest(byte[] digest,
java.lang.String algorithm)
Constructs a DigestRequest with a digest value and algorithm identifier.
The digest of the certificate whose private key is returned must match the provided digest. The certificate digest is computed by applying the specified algorithm to the bytes of the certificate. For example: MessageDigest.getInstance(algorithm).digest(cert.getEncoded()) . The corresponding certificate chain for the private key is also returned. If the digest or algorithm parameters are null, the handler of the callback relies on its own defaults.