次の方法で共有


SSLContext.CreateSSLEngine Method

Definition

Overloads

CreateSSLEngine()

Creates a new SSLEngine using this context.

CreateSSLEngine(String, Int32)

Creates a new SSLEngine using this context using advisory peer information.

CreateSSLEngine()

Creates a new SSLEngine using this context.

[Android.Runtime.Register("createSSLEngine", "()Ljavax/net/ssl/SSLEngine;", "")]
public Javax.Net.Ssl.SSLEngine? CreateSSLEngine ();
[<Android.Runtime.Register("createSSLEngine", "()Ljavax/net/ssl/SSLEngine;", "")>]
member this.CreateSSLEngine : unit -> Javax.Net.Ssl.SSLEngine

Returns

the SSLEngine object

Attributes

Exceptions

if the provider does not support the operation.

Remarks

Creates a new SSLEngine using this context.

Applications using this factory method are providing no hints for an internal session reuse strategy. If hints are desired, #createSSLEngine(String, int) should be used instead.

Some cipher suites (such as Kerberos) require remote hostname information, in which case this factory method should not be used.

Added in 1.5.

Java documentation for javax.net.ssl.SSLContext.createSSLEngine().

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

CreateSSLEngine(String, Int32)

Creates a new SSLEngine using this context using advisory peer information.

[Android.Runtime.Register("createSSLEngine", "(Ljava/lang/String;I)Ljavax/net/ssl/SSLEngine;", "")]
public Javax.Net.Ssl.SSLEngine? CreateSSLEngine (string? peerHost, int peerPort);
[<Android.Runtime.Register("createSSLEngine", "(Ljava/lang/String;I)Ljavax/net/ssl/SSLEngine;", "")>]
member this.CreateSSLEngine : string * int -> Javax.Net.Ssl.SSLEngine

Parameters

peerHost
String

the non-authoritative name of the host

peerPort
Int32

the non-authoritative port

Returns

the new SSLEngine object

Attributes

Exceptions

if the provider does not support the operation.

Remarks

Creates a new SSLEngine using this context using advisory peer information.

Applications using this factory method are providing hints for an internal session reuse strategy.

Some cipher suites (such as Kerberos) require remote hostname information, in which case peerHost needs to be specified.

Added in 1.5.

Java documentation for javax.net.ssl.SSLContext.createSSLEngine(java.lang.String, int).

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