javax.net.ssl

Class X509ExtendedKeyManager

public abstract class X509ExtendedKeyManager extends Object implements X509KeyManager

An extended {@link X509KeyManager} for use with {@link SSLEngine}.

Since: 1.5

Constructor Summary
protected X509ExtendedKeyManager()
Default constructor.
Method Summary
StringchooseEngineClientAlias(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.
StringchooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine)
Return a server alias given a key type, a list of allowable issuers, and the SSLEngine being used.

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.