Share via


SSLParameters.SNIMatchers Property

Definition

Returns a Collection containing all SNIMatchers of the Server Name Indication (SNI) parameter, or null if none has been set. -or- Sets the SNIMatchers of the Server Name Indication (SNI) parameter.

public System.Collections.Generic.ICollection<Javax.Net.Ssl.SNIMatcher>? SNIMatchers { [Android.Runtime.Register("getSNIMatchers", "()Ljava/util/Collection;", "", ApiSince=24)] get; [Android.Runtime.Register("setSNIMatchers", "(Ljava/util/Collection;)V", "", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getSNIMatchers", "()Ljava/util/Collection;", "", ApiSince=24)>]
[<set: Android.Runtime.Register("setSNIMatchers", "(Ljava/util/Collection;)V", "", ApiSince=24)>]
member this.SNIMatchers : System.Collections.Generic.ICollection<Javax.Net.Ssl.SNIMatcher> with get, set

Property Value

null or an immutable collection of non-null SNIMatchers

Attributes

Remarks

Property getter documentation:

Returns a Collection containing all SNIMatchers of the Server Name Indication (SNI) parameter, or null if none has been set.

This method is only useful to SSLSockets or SSLEngines operating in server mode.

For better interoperability, providers generally will not define default matchers so that by default servers will ignore the SNI extension and continue the handshake.

Added in 1.8.

Java documentation for javax.net.ssl.SSLParameters.getSNIMatchers().

Property setter documentation:

Sets the SNIMatchers of the Server Name Indication (SNI) parameter.

This method is only useful to SSLSockets or SSLEngines operating in server mode.

Note that the matchers collection is cloned to protect against subsequent modification.

Added in 1.8.

Java documentation for javax.net.ssl.SSLParameters.setSNIMatchers(java.util.Collection<javax.net.ssl.SNIMatcher>).

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