Class PrivateKeyCallback.DigestRequest
java.lang.Object
jakarta.security.auth.message.callback.PrivateKeyCallback.DigestRequest
- All Implemented Interfaces:
PrivateKeyCallback.Request
- Enclosing class:
PrivateKeyCallback
public static class PrivateKeyCallback.DigestRequest
extends Object
implements PrivateKeyCallback.Request
A request to retrieve a certificate chain and private key by
certificate digest value.
-
Constructor Summary
ConstructorsConstructorDescriptionDigestRequest(byte[] digest, String algorithm) Creates a newDigestRequestwith the specified digest value and digest algorithm. -
Method Summary
Modifier and TypeMethodDescriptionReturns the digest algorithm used for this request.byte[]Returns the digest value for this request.
-
Constructor Details
-
DigestRequest
Creates a newDigestRequestwith the specified digest value and digest algorithm.- Parameters:
digest- the digest value of the desired certificatealgorithm- the digest algorithm used to produce the digest
-
-
Method Details
-
getDigest
public byte[] getDigest()Returns the digest value for this request.- Returns:
- the digest byte array
-
getAlgorithm
Returns the digest algorithm used for this request.- Returns:
- the algorithm name
-