IpSecTransform.Builder.BuildTransportModeTransform 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.
Builds and activates a transport-mode IPsec transform.
[Android.Runtime.Register("buildTransportModeTransform", "(Ljava/net/InetAddress;Landroid/net/IpSecManager$SecurityParameterIndex;)Landroid/net/IpSecTransform;", "GetBuildTransportModeTransform_Ljava_net_InetAddress_Landroid_net_IpSecManager_SecurityParameterIndex_Handler", ApiSince=28)]
public virtual Android.Net.IpSecTransform BuildTransportModeTransform(Java.Net.InetAddress sourceAddress, Android.Net.IpSecManager.SecurityParameterIndex spi);
[<Android.Runtime.Register("buildTransportModeTransform", "(Ljava/net/InetAddress;Landroid/net/IpSecManager$SecurityParameterIndex;)Landroid/net/IpSecTransform;", "GetBuildTransportModeTransform_Ljava_net_InetAddress_Landroid_net_IpSecManager_SecurityParameterIndex_Handler", ApiSince=28)>]
abstract member BuildTransportModeTransform : Java.Net.InetAddress * Android.Net.IpSecManager.SecurityParameterIndex -> Android.Net.IpSecTransform
override this.BuildTransportModeTransform : Java.Net.InetAddress * Android.Net.IpSecManager.SecurityParameterIndex -> Android.Net.IpSecTransform
Parameters
- sourceAddress
- InetAddress
The source address of traffic on sockets that use the transform. It must belong to the network used by those sockets.
The unique reserved SPI that identifies transformed traffic.
Returns
The active transport-mode transform.
- Attributes
Exceptions
Thrown when transform properties are combined invalidly.
Thrown when too many transforms are active.
Thrown when the SPI cannot be used.
Thrown for other IPsec errors.
Remarks
Traffic is affected only after the transform is applied to a socket.