Dela via


SSLServerSocket.SSLParameters Property

Definition

Returns the SSLParameters in effect for newly accepted connections. -or- Applies SSLParameters to newly accepted connections.

public virtual Javax.Net.Ssl.SSLParameters? SSLParameters { [Android.Runtime.Register("getSSLParameters", "()Ljavax/net/ssl/SSLParameters;", "GetGetSSLParametersHandler", ApiSince=24)] get; [Android.Runtime.Register("setSSLParameters", "(Ljavax/net/ssl/SSLParameters;)V", "GetSetSSLParameters_Ljavax_net_ssl_SSLParameters_Handler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getSSLParameters", "()Ljavax/net/ssl/SSLParameters;", "GetGetSSLParametersHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setSSLParameters", "(Ljavax/net/ssl/SSLParameters;)V", "GetSetSSLParameters_Ljavax_net_ssl_SSLParameters_Handler", ApiSince=24)>]
member this.SSLParameters : Javax.Net.Ssl.SSLParameters with get, set

Property Value

the SSLParameters in effect for newly accepted connections

Attributes

Remarks

Property getter documentation:

Returns the SSLParameters in effect for newly accepted connections. The ciphersuites and protocols of the returned SSLParameters are always non-null.

Added in 1.7.

Java documentation for javax.net.ssl.SSLServerSocket.getSSLParameters().

Property setter documentation:

Applies SSLParameters to newly accepted connections.

This means: <ul> <li>If params.getCipherSuites() is non-null, setEnabledCipherSuites() is called with that value.</li> <li>If params.getProtocols() is non-null, setEnabledProtocols() is called with that value.</li> <li>If params.getNeedClientAuth() or params.getWantClientAuth() return true, setNeedClientAuth(true) and setWantClientAuth(true) are called, respectively; otherwise setWantClientAuth(false) is called.</li> <li>If params.getServerNames() is non-null, the socket will configure its server names with that value.</li> <li>If params.getSNIMatchers() is non-null, the socket will configure its SNI matchers with that value.</li> </ul>

Added in 1.7.

Java documentation for javax.net.ssl.SSLServerSocket.setSSLParameters(javax.net.ssl.SSLParameters).

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