org.apache.tomcat.util.net.jsse

## Class JSSEKeyManager

- java.lang.Object
- - javax.net.ssl.X509ExtendedKeyManager
  - - org.apache.tomcat.util.net.jsse.JSSEKeyManager

- All Implemented Interfaces:
    KeyManager, X509KeyManager

  Deprecated.
  Unused. This class will be removed in Tomcat 9.

      @Deprecated
      public final class JSSEKeyManager
      extends X509ExtendedKeyManager

  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.
  Author:
    Jan Luehe

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JSSEKeyManager(X509KeyManager mgr, String serverKeyAlias)` Deprecated. Constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)` Deprecated.
    `String` | `chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine)` Deprecated.
    `String` | `chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine)` Deprecated. Returns the server key alias that was provided in the constructor or the result from `X509ExtendedKeyManager.chooseEngineServerAlias(String, Principal[], SSLEngine)` for the delegate if no alias is specified.
    `String` | `chooseServerAlias(String keyType, Principal[] issuers, Socket socket)` Deprecated. Returns the server key alias that was provided in the constructor or the result from `X509KeyManager.chooseServerAlias(String, Principal[], Socket)` for the delegate if no alias is specified.
    `X509Certificate[]` | `getCertificateChain(String alias)` Deprecated.
    `String[]` | `getClientAliases(String keyType, Principal[] issuers)` Deprecated.
    `PrivateKey` | `getPrivateKey(String alias)` Deprecated.
    `String[]` | `getServerAliases(String keyType, Principal[] issuers)` Deprecated.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JSSEKeyManager

          public JSSEKeyManager(X509KeyManager mgr,
                        String serverKeyAlias)

      Deprecated.
      Constructor.
      Parameters:
        `mgr` - The X509KeyManager used as a delegate
        `serverKeyAlias` - The alias name of the server's keypair and supporting certificate chain

  - ### Method Detail

    - #### chooseServerAlias

          public String chooseServerAlias(String keyType,
                                 Principal[] issuers,
                                 Socket socket)

      Deprecated.
      Returns the server key alias that was provided in the constructor or the result from `X509KeyManager.chooseServerAlias(String, Principal[], Socket)` for the delegate if no alias is specified.

    - #### chooseEngineServerAlias

          public String chooseEngineServerAlias(String keyType,
                                       Principal[] issuers,
                                       SSLEngine engine)

      Deprecated.
      Returns the server key alias that was provided in the constructor or the result from `X509ExtendedKeyManager.chooseEngineServerAlias(String, Principal[], SSLEngine)` for the delegate if no alias is specified.
      Overrides:
        `chooseEngineServerAlias` in class `X509ExtendedKeyManager`

    - #### chooseClientAlias

          public String chooseClientAlias(String[] keyType,
                                 Principal[] issuers,
                                 Socket socket)

      Deprecated.

    - #### getCertificateChain

          public X509Certificate[] getCertificateChain(String alias)

      Deprecated.

    - #### getClientAliases

          public String[] getClientAliases(String keyType,
                                  Principal[] issuers)

      Deprecated.

    - #### getServerAliases

          public String[] getServerAliases(String keyType,
                                  Principal[] issuers)

      Deprecated.

    - #### getPrivateKey

          public PrivateKey getPrivateKey(String alias)

      Deprecated.

    - #### chooseEngineClientAlias

          public String chooseEngineClientAlias(String[] keyType,
                                       Principal[] issuers,
                                       SSLEngine engine)

      Deprecated.
      Overrides:
        `chooseEngineClientAlias` in class `X509ExtendedKeyManager`

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.