Langue

IkeSession Constructeur

Définition

Construit une nouvelle session 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

Paramètres

context
Context

une instance valide Context .

ikeSessionParams
IkeSessionParams

qui IkeSessionParams contient un ensemble de configurations valides IkeSession .

firstChildSessionParams
ChildSessionParams

qui ChildSessionParams contient un ensemble de configurations valides pour la première session enfant.

userCbExecutor
IExecutor

sur Executor lequel tous les rappels seront publiés. Pour assurer la sécurité et la cohérence, les rappels publiés sur cet exécuteur DOIVENT être exécutés en série et dans l’ordre dans lequel ils ont été publiés, comme garanti par les exécuteurs tels que java.util.concurrent.Executors#newSingleThreadExecutor()

ikeSessionCallback
IIkeSessionCallback

l’interface IkeSessionCallback permettant de notifier les appelants des modifications d’état dans le IkeSession.

firstChildSessionCallback
IChildSessionCallback

interface ChildSessionCallback permettant de notifier les appelants des modifications d’état dans la première session enfant.

Attributs

Remarques

Construit une nouvelle session IKE.

Cette méthode retourne immédiatement une instance d’une procédure d’installation IkeSession et lance de manière asynchrone la procédure d’installation ainsi IkeSession que sa première session enfant. Les appelants seront avertis de ces deux résultats de configuration via les arguments de rappel.

FEATURE_IPSEC_TUNNELS est nécessaire pour configurer une sape enfant en mode tunnel.

Java documentation pour 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).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à