IpSecManager.AllocateSecurityParameterIndex Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AllocateSecurityParameterIndex(InetAddress) |
Reserves a randomly selected security parameter index (SPI). |
| AllocateSecurityParameterIndex(InetAddress, Int32) |
Reserves the requested security parameter index (SPI). |
AllocateSecurityParameterIndex(InetAddress)
Reserves a randomly selected security parameter index (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
Parameters
- destinationAddress
- InetAddress
The destination for traffic that bears the SPI. For inbound traffic, the address should currently be assigned on the device.
Returns
The SPI reservation, which remains held until it is closed. After the SPI is used by a transform, it cannot be used for another transform.
- Attributes
Exceptions
Thrown when too many SPIs are allocated for the user.
Remarks
Applies to
AllocateSecurityParameterIndex(InetAddress, Int32)
Reserves the requested security parameter index (SPI).
[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
Parameters
- destinationAddress
- InetAddress
The destination for traffic that bears the SPI. For inbound traffic, the address should currently be assigned on the device.
- requestedSpi
- Int32
The requested SPI. Values 1 through 255 are reserved and cannot be used.
Returns
The SPI reservation, which remains held until it is closed. After the SPI is used by a transform, it cannot be used for another transform.
- Attributes
Exceptions
Thrown when too many SPIs are allocated for the user.
Thrown when the remote-address/SPI pair cannot be reserved.