Language

SSLSocket.NeedClientAuth Property

Definition

Gets or sets whether this socket requires client authentication.

public abstract bool NeedClientAuth { [Android.Runtime.Register("getNeedClientAuth", "()Z", "GetGetNeedClientAuthHandler")] get; [Android.Runtime.Register("setNeedClientAuth", "(Z)V", "GetSetNeedClientAuth_ZHandler")] set; }
[<get: Android.Runtime.Register("getNeedClientAuth", "()Z", "GetGetNeedClientAuthHandler")>]
[<set: Android.Runtime.Register("setNeedClientAuth", "(Z)V", "GetSetNeedClientAuth_ZHandler")>]
member this.NeedClientAuth : bool with get, set

Property Value

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

Attributes

Remarks

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

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

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

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