Home » apache-tomcat-6.0.26-src » org.apache » tomcat » util » net » jsse » [javadoc | source]
org.apache.tomcat.util.net.jsse
public final class: JSSEKeyManager [javadoc | source]
java.lang.Object
   org.apache.tomcat.util.net.jsse.JSSEKeyManager

All Implemented Interfaces:
    X509KeyManager

X509KeyManager which allows selection of a specific keypair and certificate chain (identified by their keystore alias name) to be used by the server to authenticate itself to SSL clients.
Constructor:
 public JSSEKeyManager(X509KeyManager mgr,
    String serverKeyAlias) 
    Constructor.
    Parameters:
    mgr - The X509KeyManager used as a delegate
    serverKeyAlias - The alias name of the server's keypair and supporting certificate chain
Method from org.apache.tomcat.util.net.jsse.JSSEKeyManager Summary:
chooseClientAlias,   chooseServerAlias,   getCertificateChain,   getClientAliases,   getPrivateKey,   getServerAliases
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tomcat.util.net.jsse.JSSEKeyManager Detail:
 public String chooseClientAlias(String[] keyType,
    Principal[] issuers,
    Socket socket) 
    Choose an alias to authenticate the client side of a secure socket, given the public key type and the list of certificate issuer authorities recognized by the peer (if any).
 public String chooseServerAlias(String keyType,
    Principal[] issuers,
    Socket socket) 
    Returns this key manager's server key alias that was provided in the constructor.
 public X509Certificate[] getCertificateChain(String alias) 
    Returns the certificate chain associated with the given alias.
 public String[] getClientAliases(String keyType,
    Principal[] issuers) 
    Get the matching aliases for authenticating the client side of a secure socket, given the public key type and the list of certificate issuer authorities recognized by the peer (if any).
 public PrivateKey getPrivateKey(String alias) 
    Returns the key associated with the given alias.
 public String[] getServerAliases(String keyType,
    Principal[] issuers) 
    Get the matching aliases for authenticating the server side of a secure socket, given the public key type and the list of certificate issuer authorities recognized by the peer (if any).