public static class PrivateKeyCallback.DigestRequest extends Object implements PrivateKeyCallback.Request
Constructor and Description |
---|
PrivateKeyCallback.DigestRequest(byte[] digest,
String algorithm)
Constructs a DigestRequest with a digest value and algorithm identifier.
|
public PrivateKeyCallback.DigestRequest(byte[] digest, 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.
public byte[] getDigest()
public String getAlgorithm()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.