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