javax.net.ssl
Class X509ExtendedKeyManager

java.lang.Object
  extended by javax.net.ssl.X509ExtendedKeyManager
All Implemented Interfaces:
KeyManager, X509KeyManager

public abstract class X509ExtendedKeyManager
extends Object
implements X509KeyManager

An extended X509KeyManager for use with SSLEngine.

Since:
1.5

Constructor Summary
protected X509ExtendedKeyManager()
          Default constructor.
 
Method Summary
 String chooseEngineClientAlias(String[] keyTypes, Principal[] issuers, SSLEngine engine)
          Return a client alias given a list of key types, a list of allowable issuers, and the SSLEngine being used.
 String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine)
          Return a server alias given a key type, a list of allowable issuers, and the SSLEngine being used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.net.ssl.X509KeyManager
chooseClientAlias, chooseServerAlias, getCertificateChain, getClientAliases, getPrivateKey, getServerAliases
 

Constructor Detail

X509ExtendedKeyManager

protected X509ExtendedKeyManager()
Default constructor.

Method Detail

chooseEngineClientAlias

public String chooseEngineClientAlias(String[] keyTypes,
                                      Principal[] issuers,
                                      SSLEngine engine)
Return a client alias given a list of key types, a list of allowable issuers, and the SSLEngine being used.

This implementation always returns null.

Parameters:
keyTypes - The list of desired key types.
issuers - The list of desired key issuers.
engine - This client's SSLEngine.
Returns:
A key alias that matches the given parameters, or null if the parameters were not matched.

chooseEngineServerAlias

public String chooseEngineServerAlias(String keyType,
                                      Principal[] issuers,
                                      SSLEngine engine)
Return a server alias given a key type, a list of allowable issuers, and the SSLEngine being used.

This implementation always returns null.

Parameters:
keyType - The desired key type.
issuers - The list of desired key issuers.
engine - The server's SSLEngine.
Returns:
A key alias that matches the given parameters, or null if the parameters were not matched.