JBoss Java Authentication SPI for Containers 1.0 API 1.0.0.Final

javax.security.auth.message.callback
Class PrivateKeyCallback.DigestRequest

java.lang.Object
  extended by 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.


Constructor Summary
PrivateKeyCallback.DigestRequest(byte[] digest, String algorithm)
           Constructs a DigestRequest with a digest value and algorithm identifier.
 
Method Summary
 String getAlgorithm()
           
 byte[] getDigest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

getDigest

public byte[] getDigest()

getAlgorithm

public String getAlgorithm()

JBoss Java Authentication SPI for Containers 1.0 API 1.0.0.Final

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.