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