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