Language

SSLSocket.WantClientAuth Property

Definition

Gets or sets whether this socket requests client authentication.

public abstract bool WantClientAuth { [Android.Runtime.Register("getWantClientAuth", "()Z", "GetGetWantClientAuthHandler")] get; [Android.Runtime.Register("setWantClientAuth", "(Z)V", "GetSetWantClientAuth_ZHandler")] set; }
[<get: Android.Runtime.Register("getWantClientAuth", "()Z", "GetGetWantClientAuthHandler")>]
[<set: Android.Runtime.Register("setWantClientAuth", "(Z)V", "GetSetWantClientAuth_ZHandler")>]
member this.WantClientAuth : bool with get, set

Property Value

true if client authentication is requested but not required; otherwise, false. A false value can also mean that client authentication is required.

Attributes

Remarks

Returns true if the socket will request client authentication. This option is only useful for sockets in the server mode.

Setting this property clears NeedClientAuth, even when the value is false.

Java reference for javax.net.ssl.SSLSocket.getWantClientAuth.

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