javax.security.auth.message.callback
Class PrivateKeyCallback.DigestRequest
java.lang.Object
javax.security.auth.message.callback.PrivateKeyCallback.DigestRequest
- All Implemented Interfaces:
- PrivateKeyCallback.Request
- Enclosing class:
- PrivateKeyCallback
public static class PrivateKeyCallback.DigestRequest
- extends Object
- implements PrivateKeyCallback.Request
Request type for private keys that are identified using a certificate digest or thumbprint.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrivateKeyCallback.DigestRequest
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.
getDigest
public byte[] getDigest()
getAlgorithm
public String getAlgorithm()
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.