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

Choose an alias to authenticate 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).

Parameters:
keyType    the key algorithm type name.
issuers    the list of acceptable CA issuer subject names or null if it does not matter which issuers are used.
socket    the socket to be used for this connection. This parameter can be null, which indicates that implementations are free to select an alias applicable to any socket.

Returns:  the alias name for the desired key, or null if there are no matches.