Langue

IpSecManager.AllocateSecurityParameterIndex Méthode

Définition

Surcharges

Nom Description
AllocateSecurityParameterIndex(InetAddress)

Réserve un index de paramètre de sécurité sélectionné de manière aléatoire (SPI).

AllocateSecurityParameterIndex(InetAddress, Int32)

Réserve l’index de paramètre de sécurité (SPI) demandé.

AllocateSecurityParameterIndex(InetAddress)

Réserve un index de paramètre de sécurité sélectionné de manière aléatoire (SPI).

[Android.Runtime.Register("allocateSecurityParameterIndex", "(Ljava/net/InetAddress;)Landroid/net/IpSecManager$SecurityParameterIndex;", "GetAllocateSecurityParameterIndex_Ljava_net_InetAddress_Handler", ApiSince=28)]
public virtual Android.Net.IpSecManager.SecurityParameterIndex AllocateSecurityParameterIndex(Java.Net.InetAddress destinationAddress);
[<Android.Runtime.Register("allocateSecurityParameterIndex", "(Ljava/net/InetAddress;)Landroid/net/IpSecManager$SecurityParameterIndex;", "GetAllocateSecurityParameterIndex_Ljava_net_InetAddress_Handler", ApiSince=28)>]
abstract member AllocateSecurityParameterIndex : Java.Net.InetAddress -> Android.Net.IpSecManager.SecurityParameterIndex
override this.AllocateSecurityParameterIndex : Java.Net.InetAddress -> Android.Net.IpSecManager.SecurityParameterIndex

Paramètres

destinationAddress
InetAddress

Destination du trafic qui porte le SPI. Pour le trafic entrant, l’adresse doit actuellement être affectée sur l’appareil.

Retours

Le SPI réservé, qui reste disponible jusqu’à ce qu’il soit fermé.

Attributs

Exceptions

Levée lorsque trop de SPIs sont allouées pour l’utilisateur.

Remarques

Java documentation pour android.net.IpSecManager.allocateSecurityParameterIndex(java.net.InetAddress).

S’applique à

AllocateSecurityParameterIndex(InetAddress, Int32)

Réserve l’index de paramètre de sécurité (SPI) demandé.

[Android.Runtime.Register("allocateSecurityParameterIndex", "(Ljava/net/InetAddress;I)Landroid/net/IpSecManager$SecurityParameterIndex;", "GetAllocateSecurityParameterIndex_Ljava_net_InetAddress_IHandler", ApiSince=28)]
public virtual Android.Net.IpSecManager.SecurityParameterIndex AllocateSecurityParameterIndex(Java.Net.InetAddress destinationAddress, int requestedSpi);
[<Android.Runtime.Register("allocateSecurityParameterIndex", "(Ljava/net/InetAddress;I)Landroid/net/IpSecManager$SecurityParameterIndex;", "GetAllocateSecurityParameterIndex_Ljava_net_InetAddress_IHandler", ApiSince=28)>]
abstract member AllocateSecurityParameterIndex : Java.Net.InetAddress * int -> Android.Net.IpSecManager.SecurityParameterIndex
override this.AllocateSecurityParameterIndex : Java.Net.InetAddress * int -> Android.Net.IpSecManager.SecurityParameterIndex

Paramètres

destinationAddress
InetAddress

Destination du trafic qui porte le SPI. Pour le trafic entrant, l’adresse doit actuellement être affectée sur l’appareil.

requestedSpi
Int32

SPI demandé. Les valeurs 1 à 255 sont réservées et ne peuvent pas être utilisées.

Retours

Le SPI réservé, qui reste disponible jusqu’à ce qu’il soit fermé.

Attributs

Exceptions

Levée lorsque trop de SPIs sont allouées pour l’utilisateur.

Levée lorsque la paire remote-address/SPI ne peut pas être réservée.

Remarques

Java documentation pour android.net.IpSecManager.allocateSecurityParameterIndex(java.net.InetAddress, int).

S’applique à