Langue

IpSecTransform.Builder.BuildTransportModeTransform Méthode

Définition

Génère et active une transformation IPsec en mode transport.

[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

Paramètres

sourceAddress
InetAddress

Adresse source du trafic sur les sockets qui utilisent la transformation. Il doit appartenir au réseau utilisé par ces sockets.

spi
IpSecManager.SecurityParameterIndex

SPI réservé unique qui identifie le trafic transformé.

Retours

Transformation en mode transport actif.

Attributs

Exceptions

Levée lorsque les propriétés de transformation sont combinées de manière non valide.

Levée lorsque trop de transformations sont actives.

Levée lorsque le SPI ne peut pas être utilisé.

Levée pour d’autres erreurs IPsec.

Remarques

Le trafic n’est affecté qu’après l’application de la transformation à un socket.

Java documentation pour android.net.IpSecTransform.Builder.buildTransportModeTransform(java.net.InetAddress, android.net.IpSecManager.SecurityParameterIndex).

S’applique à