-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIEs10xFunction.java
97 lines (63 loc) · 3.35 KB
/
IEs10xFunction.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
package com.eastcompeace.lpa.sdk;
import com.eastcompeace.lpa.sdk.bean.es10.Notification;
import com.eastcompeace.lpa.sdk.bean.es10.ProfileInfo;
import com.eastcompeace.lpa.sdk.bean.es10.RulesAuthorisationTable;
public interface IEs10xFunction {
public static final int CANCEL_REASON_END_USER_REJECTED = 0;
public static final int CANCEL_REASON_LOAD_BPP_EXECUTION_ERROR = 5;
public static final int CANCEL_REASON_METADATA_MISMATCH = 4;
public static final int CANCEL_REASON_POSTPONED = 1;
public static final int CANCEL_REASON_PPR_NOT_ALLOWED = 3;
public static final int CANCEL_REASON_TIMEOUT = 2;
public static final int CANCEL_REASON_UNDEFINED_REASON = 127;
public static final int RESET_OPTION_DELETE_FIELD_LOADED_TEST_PROFILES = 2;
public static final int RESET_OPTION_DELETE_OPERATIONAL_PROFILES = 1;
public static final int RESET_OPTION_RESET_DEFAULT_SMDP_ADDRESS = 4;
public interface CallBack<T> {
void onComplete(int i, T t, String str);
}
public @interface CancelReason {
}
public @interface ResetOption {
}
public static class ResultCode {
public static final int RESULT_APDU_RESPONSE_ERROR = -4;
public static final int RESULT_CALLER_NOT_ALLOWED = -3;
public static final int RESULT_EUICC_NOT_FOUND = -2;
public static final int RESULT_EXCUTE_ERROR = -3;
public static final int RESULT_FIRST_USER = 1;
public static final int RESULT_HTTP_ERROR = -6;
public static final int RESULT_OK = 0;
public static final int RESULT_PARAMS_ERROR = -5;
public static final int RESULT_RSP_SERVER_ERROR = -7;
public static final int RESULT_UNKNOWN_ERROR = -1;
}
String authenticateServer(String str, byte[] bArr, byte[] bArr2, byte[] bArr3, byte[] bArr4) throws Exception;
void cancelSession(String str, int i, CallBack<String> callBack);
void deleteProfile(String str, CallBack callBack);
void disableProfile(String str, boolean z, CallBack callBack);
void enableProfile(String str, boolean z, CallBack callBack);
String getDownloadAndInstallProfileSessionKey();
String getEUICCChallenge() throws Exception;
String getEUICCInfo1() throws Exception;
String getEUICCInfo2() throws Exception;
String getEid() throws Exception;
void getProfileInfo(String str, CallBack<ProfileInfo> callBack);
void getProfileInfos(CallBack callBack);
void getRAT(CallBack<RulesAuthorisationTable> callBack);
IEs10xFunction isdpAid(String str);
void listNotification(int i, CallBack callBack);
void loadBoundProfilePackage(byte[] bArr, CallBack callBack);
String prepareDownload(byte[] bArr, byte[] bArr2, byte[] bArr3, byte[] bArr4) throws Exception;
IEs10xFunction profileClass(String str);
void removeNotificationFromList(String str, CallBack<Void> callBack);
void requestDefaultSmdpAddress(CallBack<String> callBack);
void requestSmdsAddress(CallBack<String> callBack);
void resetMemory(int i, CallBack<Void> callBack);
void retrieveNotification(String str, CallBack<Notification> callBack);
void retrieveNotificationsList(int i, CallBack callBack);
void setChannel(IChannel iChannel);
void setDefaultDpAddress(String str, CallBack<Void> callBack);
void setNickName(String str, String str2, CallBack callBack);
IEs10xFunction slotId(int i);
}