Android Guides | Samples

Android.Webkit.ClientCertRequest Class

ClientCertRequest: The user receives an instance of this class as a parameter of WebViewClient.OnReceivedClientCertRequest(WebView,ClientCertRequest).

See Also: ClientCertRequest

Syntax

[Android.Runtime.Register("android/webkit/ClientCertRequest", DoNotGenerateAcw=true)]
public abstract class ClientCertRequest : Object

Remarks

ClientCertRequest: The user receives an instance of this class as a parameter of WebViewClient.OnReceivedClientCertRequest(WebView,ClientCertRequest). The request includes the parameters to choose the client certificate, such as the host name and the port number requesting the cert, the acceptable key types and the principals. The user should call one of the class methods to indicate how to deal with the client certificate request. All methods should be called on UI thread. WebView caches the ClientCertRequest.Proceed(IPrivateKey,X509Certificate[]) and ClientCertRequest.Cancel responses in memory and uses them to handle future client certificate requests for the same host/port pair. The user can clear the cached data using WebView.ClearClientCertPreferences(IRunnable).

[Android Documentation]

Requirements

Namespace: Android.Webkit
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Webkit.ClientCertRequest are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
abstract
HostString. Returns the host name of the server requesting the certificate.
[read-only]
abstract
PortInt32. Returns the port number of the server requesting the certificate.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

abstract
Cancel()
Cancel this request.
abstract
GetKeyTypes() : String[]
Returns the acceptable types of asymmetric keys (can be null).
abstract
GetPrincipals() : IPrincipal[]
Returns the acceptable certificate issuers for the certificate matching the private key (can be null).
abstract
Ignore()
Ignore the request for now.
abstract
Proceed(IPrivateKey, X509Certificate[])
Proceed with the specified private key and client certificate chain.