IpSecManager.AllocateSecurityParameterIndex Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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.