다음을 통해 공유


WifiEnterpriseConfig.SetClientKeyEntry(IPrivateKey, X509Certificate) Method

Definition

Specify a private key and client certificate for client authorization.

[Android.Runtime.Register("setClientKeyEntry", "(Ljava/security/PrivateKey;Ljava/security/cert/X509Certificate;)V", "GetSetClientKeyEntry_Ljava_security_PrivateKey_Ljava_security_cert_X509Certificate_Handler")]
public virtual void SetClientKeyEntry (Java.Security.IPrivateKey? privateKey, Java.Security.Cert.X509Certificate? clientCertificate);
[<Android.Runtime.Register("setClientKeyEntry", "(Ljava/security/PrivateKey;Ljava/security/cert/X509Certificate;)V", "GetSetClientKeyEntry_Ljava_security_PrivateKey_Ljava_security_cert_X509Certificate_Handler")>]
abstract member SetClientKeyEntry : Java.Security.IPrivateKey * Java.Security.Cert.X509Certificate -> unit
override this.SetClientKeyEntry : Java.Security.IPrivateKey * Java.Security.Cert.X509Certificate -> unit

Parameters

privateKey
IPrivateKey

a PrivateKey instance for the end certificate.

clientCertificate
X509Certificate

an X509Certificate representing the end certificate.

Attributes

Exceptions

for an invalid key or certificate.

Remarks

Specify a private key and client certificate for client authorization.

A default name is automatically assigned to the key entry and used with this configuration. The framework takes care of installing the key entry when the config is saved and removing the key entry when the config is removed.

Java documentation for android.net.wifi.WifiEnterpriseConfig.setClientKeyEntry(java.security.PrivateKey, java.security.cert.X509Certificate).

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