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