1// Signature format: 2.0
2package android.net.ipsec.ike {
3
4  public final class IkeSession implements java.lang.AutoCloseable {
5    method public void setNetwork(@NonNull android.net.Network, int, int, @IntRange(from=0xa, to=0xe10) int);
6    method public void setUnderpinnedNetwork(@NonNull android.net.Network);
7  }
8
9  public final class IkeSessionParams {
10    method public int getEncapType();
11    method public int getIpVersion();
12    field public static final int ESP_ENCAP_TYPE_AUTO = 0; // 0x0
13    field public static final int ESP_ENCAP_TYPE_NONE = -1; // 0xffffffff
14    field public static final int ESP_ENCAP_TYPE_UDP = 17; // 0x11
15    field public static final int ESP_IP_VERSION_AUTO = 0; // 0x0
16    field public static final int ESP_IP_VERSION_IPV4 = 4; // 0x4
17    field public static final int ESP_IP_VERSION_IPV6 = 6; // 0x6
18    field public static final int NATT_KEEPALIVE_INTERVAL_AUTO = -1; // 0xffffffff
19  }
20
21  public static final class IkeSessionParams.Builder {
22    method @NonNull public android.net.ipsec.ike.IkeSessionParams.Builder setEncapType(int);
23    method @NonNull public android.net.ipsec.ike.IkeSessionParams.Builder setIpVersion(int);
24  }
25
26}
27
28