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_AUTOMATIC_KEEPALIVE_ON_OFF = 8; // 0x8 69 field public static final int IKE_OPTION_REKEY_MOBILITY = 5; // 0x5 70 } 71 72 public static final class IkeSessionParams.Builder { 73 ctor @Deprecated public IkeSessionParams.Builder(@NonNull android.content.Context); 74 method @NonNull public android.net.ipsec.ike.IkeSessionParams.Builder addPcscfServerRequest(@NonNull java.net.InetAddress); 75 method @NonNull public android.net.ipsec.ike.IkeSessionParams.Builder addPcscfServerRequest(int); 76 method @Deprecated @NonNull public android.net.ipsec.ike.IkeSessionParams.Builder addSaProposal(@NonNull android.net.ipsec.ike.IkeSaProposal); 77 method @NonNull public android.net.ipsec.ike.IkeSessionParams.Builder setDscp(@IntRange(from=0x0, to=0x3f) int); 78 method @NonNull public android.net.ipsec.ike.IkeSessionParams.Builder setIke3gppExtension(@NonNull android.net.ipsec.ike.ike3gpp.Ike3gppExtension); 79 } 80 81 public static interface IkeSessionParams.ConfigRequestIpv4PcscfServer extends android.net.ipsec.ike.IkeSessionParams.IkeConfigRequest { 82 method @Nullable public java.net.Inet4Address getAddress(); 83 } 84 85 public static interface IkeSessionParams.ConfigRequestIpv6PcscfServer extends android.net.ipsec.ike.IkeSessionParams.IkeConfigRequest { 86 method @Nullable public java.net.Inet6Address getAddress(); 87 } 88 89 public static interface IkeSessionParams.IkeConfigRequest { 90 } 91 92 public static final class TransportModeChildSessionParams.Builder { 93 method @Deprecated @NonNull public android.net.ipsec.ike.TransportModeChildSessionParams.Builder addSaProposal(@NonNull android.net.ipsec.ike.ChildSaProposal); 94 } 95 96 public static final class TunnelModeChildSessionParams.Builder { 97 method @Deprecated @NonNull public android.net.ipsec.ike.TunnelModeChildSessionParams.Builder addSaProposal(@NonNull android.net.ipsec.ike.ChildSaProposal); 98 } 99 100} 101 102package android.net.ipsec.ike.exceptions { 103 104 public abstract class IkeProtocolException extends android.net.ipsec.ike.exceptions.IkeException { 105 method @Nullable public byte[] getErrorData(); 106 } 107 108} 109 110package android.net.ipsec.ike.ike3gpp { 111 112 public final class Ike3gppBackoffTimer extends android.net.ipsec.ike.ike3gpp.Ike3gppData { 113 ctor public Ike3gppBackoffTimer(byte, int); 114 method public int getBackoffCause(); 115 method public byte getBackoffTimer(); 116 method public int getDataType(); 117 field public static final int ERROR_TYPE_NETWORK_FAILURE = 10500; // 0x2904 118 field public static final int ERROR_TYPE_NO_APN_SUBSCRIPTION = 9002; // 0x232a 119 } 120 121 public abstract class Ike3gppData { 122 method public abstract int getDataType(); 123 field public static final int DATA_TYPE_NOTIFY_BACKOFF_TIMER = 2; // 0x2 124 field public static final int DATA_TYPE_NOTIFY_N1_MODE_INFORMATION = 1; // 0x1 125 } 126 127 public final class Ike3gppExtension { 128 ctor public Ike3gppExtension(@NonNull android.net.ipsec.ike.ike3gpp.Ike3gppParams, @NonNull android.net.ipsec.ike.ike3gpp.Ike3gppExtension.Ike3gppDataListener); 129 method @NonNull public android.net.ipsec.ike.ike3gpp.Ike3gppExtension.Ike3gppDataListener getIke3gppDataListener(); 130 method @NonNull public android.net.ipsec.ike.ike3gpp.Ike3gppParams getIke3gppParams(); 131 } 132 133 public static interface Ike3gppExtension.Ike3gppDataListener { 134 method public void onIke3gppDataReceived(@NonNull java.util.List<android.net.ipsec.ike.ike3gpp.Ike3gppData>); 135 } 136 137 public final class Ike3gppN1ModeInformation extends android.net.ipsec.ike.ike3gpp.Ike3gppData { 138 ctor public Ike3gppN1ModeInformation(@NonNull byte[]); 139 method public int getDataType(); 140 method @NonNull public byte[] getSnssai(); 141 } 142 143 public final class Ike3gppParams { 144 method @Nullable public String getMobileDeviceIdentity(); 145 method public byte getPduSessionId(); 146 field public static final byte PDU_SESSION_ID_UNSET = 0; // 0x0 147 } 148 149 public static final class Ike3gppParams.Builder { 150 ctor public Ike3gppParams.Builder(); 151 method @NonNull public android.net.ipsec.ike.ike3gpp.Ike3gppParams build(); 152 method @NonNull public android.net.ipsec.ike.ike3gpp.Ike3gppParams.Builder setMobileDeviceIdentity(@Nullable String); 153 method @NonNull public android.net.ipsec.ike.ike3gpp.Ike3gppParams.Builder setPduSessionId(byte); 154 } 155 156} 157 158