Lingua

IkeSession Costruttore

Definizione

Costruisce una nuova sessione IKE.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/net/ipsec/ike/IkeSessionParams;Landroid/net/ipsec/ike/ChildSessionParams;Ljava/util/concurrent/Executor;Landroid/net/ipsec/ike/IkeSessionCallback;Landroid/net/ipsec/ike/ChildSessionCallback;)V", "", ApiSince=31)]
public IkeSession(Android.Content.Context context, Android.Net.IpSec.Ike.IkeSessionParams ikeSessionParams, Android.Net.IpSec.Ike.ChildSessionParams firstChildSessionParams, Java.Util.Concurrent.IExecutor userCbExecutor, Android.Net.IpSec.Ike.IIkeSessionCallback ikeSessionCallback, Android.Net.IpSec.Ike.IChildSessionCallback firstChildSessionCallback);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/net/ipsec/ike/IkeSessionParams;Landroid/net/ipsec/ike/ChildSessionParams;Ljava/util/concurrent/Executor;Landroid/net/ipsec/ike/IkeSessionCallback;Landroid/net/ipsec/ike/ChildSessionCallback;)V", "", ApiSince=31)>]
new Android.Net.IpSec.Ike.IkeSession : Android.Content.Context * Android.Net.IpSec.Ike.IkeSessionParams * Android.Net.IpSec.Ike.ChildSessionParams * Java.Util.Concurrent.IExecutor * Android.Net.IpSec.Ike.IIkeSessionCallback * Android.Net.IpSec.Ike.IChildSessionCallback -> Android.Net.IpSec.Ike.IkeSession

Parametri

context
Context

un'istanza valida Context .

ikeSessionParams
IkeSessionParams

IkeSessionParams che contiene un set di configurazioni valideIkeSession.

firstChildSessionParams
ChildSessionParams

ChildSessionParams che contiene un set di configurazioni valide per la prima sessione figlio.

userCbExecutor
IExecutor

su Executor cui verranno pubblicati tutti i callback. Per garantire la sicurezza e la coerenza, i callback inviati a questo executor DEVONO essere eseguiti in modo seriale e nell'ordine in cui sono stati pubblicati, come garantito dagli executor, ad esempio java.util.concurrent.Executors#newSingleThreadExecutor()

ikeSessionCallback
IIkeSessionCallback

IkeSessionCallback interfaccia per notificare ai chiamanti le modifiche di stato all'interno di IkeSession.

firstChildSessionCallback
IChildSessionCallback

ChildSessionCallback interfaccia per notificare ai chiamanti le modifiche di stato all'interno della prima sessione figlio.

Attributi

Commenti

Costruisce una nuova sessione IKE.

Questo metodo restituirà immediatamente un'istanza di IkeSession e avvierà in modo asincrono la procedura di installazione di IkeSession nonché la prima sessione figlio. I chiamanti riceveranno una notifica di questi due risultati di configurazione tramite gli argomenti di callback.

FEATURE_IPSEC_TUNNELS è necessario per configurare un sa figlio in modalità tunnel.

per android.net.ipsec.ike.IkeSession.IkeSession(android.content.Context, android.net.ipsec.ike.IkeSessionParams, android.net.ipsec.ike.ChildSessionParams, java.util.concurrent.Executor, android.net.ipsec.ike.IkeSessionCallback, android.net.ipsec.ike.ChildSessionCallback).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a