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