Home » openjdk-7 » javax.security » auth » message » callback » [javadoc | source]
javax.security.auth.message.callback
public class: PrivateKeyCallback [javadoc | source]
java.lang.Object
   javax.security.auth.message.callback.PrivateKeyCallback

All Implemented Interfaces:
    Callback

Callback for private key and corresponding certificate chain.
Nested Class Summary:
public static interface  PrivateKeyCallback.Request  

Marker interface for private key request types.

 
public static class  PrivateKeyCallback.AliasRequest  Request type for private keys that are identified via an alias. 
public static class  PrivateKeyCallback.IssuerSerialNumRequest  

Request type for private keys that are identified via an issuer/serial number.

 
public static class  PrivateKeyCallback.SubjectKeyIDRequest  

Request type for private keys that are identified via a SubjectKeyID

 
Constructor:
 public PrivateKeyCallback(Request request) 

    Constructs this PrivateKeyCallback with a private key Request object.

    The request object identifies the private key to be returned. The corresponding certificate chain for the private key is also returned.

    If the request object is null, the handler of the callback relies on its own default.

    Parameters:
    request - identifier for the private key, or null.
Method from javax.security.auth.message.callback.PrivateKeyCallback Summary:
getChain,   getKey,   getRequest,   setKey
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.security.auth.message.callback.PrivateKeyCallback Detail:
 public Certificate[] getChain() 
 public PrivateKey getKey() 
    Get the requested private key.
 public Request getRequest() 
    Get the Request object which identifies the private key to be returned.
 public  void setKey(PrivateKey key,
    Certificate[] chain) 

    Set the requested private key.

    If the requested private key or chain could not be found, then both values must be set to null.