xref: /aosp_15_r20/prebuilts/sdk/extensions/7/system/api/android.net.ipsec.ike.txt (revision 344a7f5ef16c479e7a7f54ee6567a9d112f9e72b)
1*344a7f5eSAndroid Build Coastguard Worker// Signature format: 2.0
2*344a7f5eSAndroid Build Coastguard Workerpackage android.net.eap {
3*344a7f5eSAndroid Build Coastguard Worker
4*344a7f5eSAndroid Build Coastguard Worker  public final class EapSessionConfig {
5*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @Nullable public android.net.eap.EapSessionConfig.EapMsChapV2Config getEapMsChapV2onfig();
6*344a7f5eSAndroid Build Coastguard Worker  }
7*344a7f5eSAndroid Build Coastguard Worker
8*344a7f5eSAndroid Build Coastguard Worker  public static class EapSessionConfig.EapAkaConfig extends android.net.eap.EapSessionConfig.EapUiccConfig {
9*344a7f5eSAndroid Build Coastguard Worker  }
10*344a7f5eSAndroid Build Coastguard Worker
11*344a7f5eSAndroid Build Coastguard Worker  public static class EapSessionConfig.EapSimConfig extends android.net.eap.EapSessionConfig.EapUiccConfig {
12*344a7f5eSAndroid Build Coastguard Worker  }
13*344a7f5eSAndroid Build Coastguard Worker
14*344a7f5eSAndroid Build Coastguard Worker  @Deprecated public abstract static class EapSessionConfig.EapUiccConfig extends android.net.eap.EapSessionConfig.EapMethodConfig {
15*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public int getAppType();
16*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public int getSubId();
17*344a7f5eSAndroid Build Coastguard Worker  }
18*344a7f5eSAndroid Build Coastguard Worker
19*344a7f5eSAndroid Build Coastguard Worker}
20*344a7f5eSAndroid Build Coastguard Worker
21*344a7f5eSAndroid Build Coastguard Workerpackage android.net.ipsec.ike {
22*344a7f5eSAndroid Build Coastguard Worker
23*344a7f5eSAndroid Build Coastguard Worker  public interface ChildSessionCallback {
24*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public default void onClosedExceptionally(@NonNull android.net.ipsec.ike.exceptions.IkeException);
25*344a7f5eSAndroid Build Coastguard Worker    method public default void onIpSecTransformsMigrated(@NonNull android.net.IpSecTransform, @NonNull android.net.IpSecTransform);
26*344a7f5eSAndroid Build Coastguard Worker  }
27*344a7f5eSAndroid Build Coastguard Worker
28*344a7f5eSAndroid Build Coastguard Worker  public final class ChildSessionConfiguration {
29*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.net.LinkAddress> getInternalAddresses();
30*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<java.net.InetAddress> getInternalDhcpServers();
31*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<java.net.InetAddress> getInternalDnsServers();
32*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.net.IpPrefix> getInternalSubnets();
33*344a7f5eSAndroid Build Coastguard Worker  }
34*344a7f5eSAndroid Build Coastguard Worker
35*344a7f5eSAndroid Build Coastguard Worker  public static final class ChildSessionConfiguration.Builder {
36*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ChildSessionConfiguration.Builder addInternalAddress(@NonNull android.net.LinkAddress);
37*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ChildSessionConfiguration.Builder addInternalDhcpServer(@NonNull java.net.InetAddress);
38*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ChildSessionConfiguration.Builder addInternalDnsServer(@NonNull java.net.InetAddress);
39*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ChildSessionConfiguration.Builder addInternalSubnet(@NonNull android.net.IpPrefix);
40*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ChildSessionConfiguration.Builder clearInternalAddresses();
41*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ChildSessionConfiguration.Builder clearInternalDhcpServers();
42*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ChildSessionConfiguration.Builder clearInternalDnsServers();
43*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ChildSessionConfiguration.Builder clearInternalSubnets();
44*344a7f5eSAndroid Build Coastguard Worker  }
45*344a7f5eSAndroid Build Coastguard Worker
46*344a7f5eSAndroid Build Coastguard Worker  public abstract class ChildSessionParams {
47*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public java.util.List<android.net.ipsec.ike.ChildSaProposal> getSaProposals();
48*344a7f5eSAndroid Build Coastguard Worker  }
49*344a7f5eSAndroid Build Coastguard Worker
50*344a7f5eSAndroid Build Coastguard Worker  public final class IkeSession implements java.lang.AutoCloseable {
51*344a7f5eSAndroid Build Coastguard Worker    method public void setNetwork(@NonNull android.net.Network);
52*344a7f5eSAndroid Build Coastguard Worker  }
53*344a7f5eSAndroid Build Coastguard Worker
54*344a7f5eSAndroid Build Coastguard Worker  public interface IkeSessionCallback {
55*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public default void onClosedExceptionally(@NonNull android.net.ipsec.ike.exceptions.IkeException);
56*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public default void onError(@NonNull android.net.ipsec.ike.exceptions.IkeProtocolException);
57*344a7f5eSAndroid Build Coastguard Worker    method public default void onIkeSessionConnectionInfoChanged(@NonNull android.net.ipsec.ike.IkeSessionConnectionInfo);
58*344a7f5eSAndroid Build Coastguard Worker  }
59*344a7f5eSAndroid Build Coastguard Worker
60*344a7f5eSAndroid Build Coastguard Worker  public final class IkeSessionConfiguration {
61*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<java.net.InetAddress> getPcscfServers();
62*344a7f5eSAndroid Build Coastguard Worker  }
63*344a7f5eSAndroid Build Coastguard Worker
64*344a7f5eSAndroid Build Coastguard Worker  public static final class IkeSessionConfiguration.Builder {
65*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.IkeSessionConfiguration.Builder addPcscfServer(@NonNull java.net.InetAddress);
66*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.IkeSessionConfiguration.Builder clearPcscfServers();
67*344a7f5eSAndroid Build Coastguard Worker  }
68*344a7f5eSAndroid Build Coastguard Worker
69*344a7f5eSAndroid Build Coastguard Worker  public final class IkeSessionParams {
70*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.net.ipsec.ike.IkeSessionParams.IkeConfigRequest> getConfigurationRequests();
71*344a7f5eSAndroid Build Coastguard Worker    method @IntRange(from=0x0, to=0x3f) public int getDscp();
72*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.net.ipsec.ike.ike3gpp.Ike3gppExtension getIke3gppExtension();
73*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public java.util.List<android.net.ipsec.ike.IkeSaProposal> getSaProposals();
74*344a7f5eSAndroid Build Coastguard Worker    field public static final int IKE_OPTION_AUTOMATIC_KEEPALIVE_ON_OFF = 8; // 0x8
75*344a7f5eSAndroid Build Coastguard Worker    field public static final int IKE_OPTION_REKEY_MOBILITY = 5; // 0x5
76*344a7f5eSAndroid Build Coastguard Worker  }
77*344a7f5eSAndroid Build Coastguard Worker
78*344a7f5eSAndroid Build Coastguard Worker  public static final class IkeSessionParams.Builder {
79*344a7f5eSAndroid Build Coastguard Worker    ctor @Deprecated public IkeSessionParams.Builder(@NonNull android.content.Context);
80*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.IkeSessionParams.Builder addPcscfServerRequest(@NonNull java.net.InetAddress);
81*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.IkeSessionParams.Builder addPcscfServerRequest(int);
82*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public android.net.ipsec.ike.IkeSessionParams.Builder addSaProposal(@NonNull android.net.ipsec.ike.IkeSaProposal);
83*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.IkeSessionParams.Builder setDscp(@IntRange(from=0x0, to=0x3f) int);
84*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.IkeSessionParams.Builder setIke3gppExtension(@NonNull android.net.ipsec.ike.ike3gpp.Ike3gppExtension);
85*344a7f5eSAndroid Build Coastguard Worker  }
86*344a7f5eSAndroid Build Coastguard Worker
87*344a7f5eSAndroid Build Coastguard Worker  public static interface IkeSessionParams.ConfigRequestIpv4PcscfServer extends android.net.ipsec.ike.IkeSessionParams.IkeConfigRequest {
88*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public java.net.Inet4Address getAddress();
89*344a7f5eSAndroid Build Coastguard Worker  }
90*344a7f5eSAndroid Build Coastguard Worker
91*344a7f5eSAndroid Build Coastguard Worker  public static interface IkeSessionParams.ConfigRequestIpv6PcscfServer extends android.net.ipsec.ike.IkeSessionParams.IkeConfigRequest {
92*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public java.net.Inet6Address getAddress();
93*344a7f5eSAndroid Build Coastguard Worker  }
94*344a7f5eSAndroid Build Coastguard Worker
95*344a7f5eSAndroid Build Coastguard Worker  public static interface IkeSessionParams.IkeConfigRequest {
96*344a7f5eSAndroid Build Coastguard Worker  }
97*344a7f5eSAndroid Build Coastguard Worker
98*344a7f5eSAndroid Build Coastguard Worker  public static final class TransportModeChildSessionParams.Builder {
99*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public android.net.ipsec.ike.TransportModeChildSessionParams.Builder addSaProposal(@NonNull android.net.ipsec.ike.ChildSaProposal);
100*344a7f5eSAndroid Build Coastguard Worker  }
101*344a7f5eSAndroid Build Coastguard Worker
102*344a7f5eSAndroid Build Coastguard Worker  public static final class TunnelModeChildSessionParams.Builder {
103*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated @NonNull public android.net.ipsec.ike.TunnelModeChildSessionParams.Builder addSaProposal(@NonNull android.net.ipsec.ike.ChildSaProposal);
104*344a7f5eSAndroid Build Coastguard Worker  }
105*344a7f5eSAndroid Build Coastguard Worker
106*344a7f5eSAndroid Build Coastguard Worker}
107*344a7f5eSAndroid Build Coastguard Worker
108*344a7f5eSAndroid Build Coastguard Workerpackage android.net.ipsec.ike.exceptions {
109*344a7f5eSAndroid Build Coastguard Worker
110*344a7f5eSAndroid Build Coastguard Worker  public abstract class IkeProtocolException extends android.net.ipsec.ike.exceptions.IkeException {
111*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public byte[] getErrorData();
112*344a7f5eSAndroid Build Coastguard Worker  }
113*344a7f5eSAndroid Build Coastguard Worker
114*344a7f5eSAndroid Build Coastguard Worker}
115*344a7f5eSAndroid Build Coastguard Worker
116*344a7f5eSAndroid Build Coastguard Workerpackage android.net.ipsec.ike.ike3gpp {
117*344a7f5eSAndroid Build Coastguard Worker
118*344a7f5eSAndroid Build Coastguard Worker  public final class Ike3gppBackoffTimer extends android.net.ipsec.ike.ike3gpp.Ike3gppData {
119*344a7f5eSAndroid Build Coastguard Worker    ctor public Ike3gppBackoffTimer(byte, int);
120*344a7f5eSAndroid Build Coastguard Worker    method public int getBackoffCause();
121*344a7f5eSAndroid Build Coastguard Worker    method public byte getBackoffTimer();
122*344a7f5eSAndroid Build Coastguard Worker    method public int getDataType();
123*344a7f5eSAndroid Build Coastguard Worker    field public static final int ERROR_TYPE_NETWORK_FAILURE = 10500; // 0x2904
124*344a7f5eSAndroid Build Coastguard Worker    field public static final int ERROR_TYPE_NO_APN_SUBSCRIPTION = 9002; // 0x232a
125*344a7f5eSAndroid Build Coastguard Worker  }
126*344a7f5eSAndroid Build Coastguard Worker
127*344a7f5eSAndroid Build Coastguard Worker  public abstract class Ike3gppData {
128*344a7f5eSAndroid Build Coastguard Worker    method public abstract int getDataType();
129*344a7f5eSAndroid Build Coastguard Worker    field public static final int DATA_TYPE_NOTIFY_BACKOFF_TIMER = 2; // 0x2
130*344a7f5eSAndroid Build Coastguard Worker    field public static final int DATA_TYPE_NOTIFY_N1_MODE_INFORMATION = 1; // 0x1
131*344a7f5eSAndroid Build Coastguard Worker  }
132*344a7f5eSAndroid Build Coastguard Worker
133*344a7f5eSAndroid Build Coastguard Worker  public final class Ike3gppExtension {
134*344a7f5eSAndroid Build Coastguard Worker    ctor public Ike3gppExtension(@NonNull android.net.ipsec.ike.ike3gpp.Ike3gppParams, @NonNull android.net.ipsec.ike.ike3gpp.Ike3gppExtension.Ike3gppDataListener);
135*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ike3gpp.Ike3gppExtension.Ike3gppDataListener getIke3gppDataListener();
136*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ike3gpp.Ike3gppParams getIke3gppParams();
137*344a7f5eSAndroid Build Coastguard Worker  }
138*344a7f5eSAndroid Build Coastguard Worker
139*344a7f5eSAndroid Build Coastguard Worker  public static interface Ike3gppExtension.Ike3gppDataListener {
140*344a7f5eSAndroid Build Coastguard Worker    method public void onIke3gppDataReceived(@NonNull java.util.List<android.net.ipsec.ike.ike3gpp.Ike3gppData>);
141*344a7f5eSAndroid Build Coastguard Worker  }
142*344a7f5eSAndroid Build Coastguard Worker
143*344a7f5eSAndroid Build Coastguard Worker  public final class Ike3gppN1ModeInformation extends android.net.ipsec.ike.ike3gpp.Ike3gppData {
144*344a7f5eSAndroid Build Coastguard Worker    ctor public Ike3gppN1ModeInformation(@NonNull byte[]);
145*344a7f5eSAndroid Build Coastguard Worker    method public int getDataType();
146*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public byte[] getSnssai();
147*344a7f5eSAndroid Build Coastguard Worker  }
148*344a7f5eSAndroid Build Coastguard Worker
149*344a7f5eSAndroid Build Coastguard Worker  public final class Ike3gppParams {
150*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getMobileDeviceIdentity();
151*344a7f5eSAndroid Build Coastguard Worker    method public byte getPduSessionId();
152*344a7f5eSAndroid Build Coastguard Worker    field public static final byte PDU_SESSION_ID_UNSET = 0; // 0x0
153*344a7f5eSAndroid Build Coastguard Worker  }
154*344a7f5eSAndroid Build Coastguard Worker
155*344a7f5eSAndroid Build Coastguard Worker  public static final class Ike3gppParams.Builder {
156*344a7f5eSAndroid Build Coastguard Worker    ctor public Ike3gppParams.Builder();
157*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ike3gpp.Ike3gppParams build();
158*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ike3gpp.Ike3gppParams.Builder setMobileDeviceIdentity(@Nullable String);
159*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.net.ipsec.ike.ike3gpp.Ike3gppParams.Builder setPduSessionId(byte);
160*344a7f5eSAndroid Build Coastguard Worker  }
161*344a7f5eSAndroid Build Coastguard Worker
162*344a7f5eSAndroid Build Coastguard Worker}
163*344a7f5eSAndroid Build Coastguard Worker
164