Share via


X509ExtendedKeyManager.ChooseEngineClientAlias Method

Definition

Choose an alias to authenticate the client side of an SSLEngine connection given the public key type and the list of certificate issuer authorities recognized by the peer (if any).

[Android.Runtime.Register("chooseEngineClientAlias", "([Ljava/lang/String;[Ljava/security/Principal;Ljavax/net/ssl/SSLEngine;)Ljava/lang/String;", "GetChooseEngineClientAlias_arrayLjava_lang_String_arrayLjava_security_Principal_Ljavax_net_ssl_SSLEngine_Handler")]
public virtual string? ChooseEngineClientAlias (string[]? keyType, Java.Security.IPrincipal[]? issuers, Javax.Net.Ssl.SSLEngine? engine);
[<Android.Runtime.Register("chooseEngineClientAlias", "([Ljava/lang/String;[Ljava/security/Principal;Ljavax/net/ssl/SSLEngine;)Ljava/lang/String;", "GetChooseEngineClientAlias_arrayLjava_lang_String_arrayLjava_security_Principal_Ljavax_net_ssl_SSLEngine_Handler")>]
abstract member ChooseEngineClientAlias : string[] * Java.Security.IPrincipal[] * Javax.Net.Ssl.SSLEngine -> string
override this.ChooseEngineClientAlias : string[] * Java.Security.IPrincipal[] * Javax.Net.Ssl.SSLEngine -> string

Parameters

keyType
String[]

the key algorithm type name(s), ordered with the most-preferred key type first.

issuers
IPrincipal[]

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

engine
SSLEngine

the SSLEngine to be used for this connection. This parameter can be null, which indicates that implementations of this interface are free to select an alias applicable to any engine.

Returns

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

Attributes

Remarks

Choose an alias to authenticate the client side of an SSLEngine connection given the public key type and the list of certificate issuer authorities recognized by the peer (if any).

The default implementation returns null.

Java documentation for javax.net.ssl.X509ExtendedKeyManager.chooseEngineClientAlias(java.lang.String[], java.security.Principal[], javax.net.ssl.SSLEngine).

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