IpSecManager.AllocateSecurityParameterIndex メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| AllocateSecurityParameterIndex(InetAddress) |
ランダムに選択されたセキュリティ パラメーター インデックス (SPI) を予約します。 |
| AllocateSecurityParameterIndex(InetAddress, Int32) |
要求されたセキュリティ パラメーター インデックス (SPI) を予約します。 |
AllocateSecurityParameterIndex(InetAddress)
ランダムに選択されたセキュリティ パラメーター インデックス (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
パラメーター
- destinationAddress
- InetAddress
SPI を負担するトラフィックの宛先。 受信トラフィックの場合、アドレスは現在デバイスに割り当てられている必要があります。
返品
予約済みの SPI。閉じられるまで使用できます。
- 属性
例外
ユーザーに割り当てられている API が多すぎる場合にスローされます。
注釈
適用対象
AllocateSecurityParameterIndex(InetAddress, Int32)
要求されたセキュリティ パラメーター インデックス (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
パラメーター
- destinationAddress
- InetAddress
SPI を負担するトラフィックの宛先。 受信トラフィックの場合、アドレスは現在デバイスに割り当てられている必要があります。
- requestedSpi
- Int32
要求された SPI。 値 1 から 255 は予約されており、使用できません。
返品
予約済みの SPI。閉じられるまで使用できます。
- 属性
例外
ユーザーに割り当てられている API が多すぎる場合にスローされます。
リモート アドレス/SPI ペアを予約できない場合にスローされます。