Share via


X509ExtendedKeyManager.ChooseServerAlias(String, IPrincipal[], Socket) Method

Definition

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).

[Android.Runtime.Register("chooseServerAlias", "(Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;", "GetChooseServerAlias_Ljava_lang_String_arrayLjava_security_Principal_Ljava_net_Socket_Handler")]
public abstract string? ChooseServerAlias (string? keyType, Java.Security.IPrincipal[]? issuers, Java.Net.Socket? socket);
[<Android.Runtime.Register("chooseServerAlias", "(Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;", "GetChooseServerAlias_Ljava_lang_String_arrayLjava_security_Principal_Ljava_net_Socket_Handler")>]
abstract member ChooseServerAlias : string * Java.Security.IPrincipal[] * Java.Net.Socket -> string

Parameters

keyType
String

the key algorithm type name.

issuers
IPrincipal[]

the list of acceptable CA issuer subject names or null if it does not matter which issuers are used.

socket
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.

Implements

Attributes

Remarks

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).

Java documentation for javax.net.ssl.X509KeyManager.chooseServerAlias(java.lang.String, java.security.Principal[], java.net.Socket).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to