m2u-upass-core / src / my / com / upass / maybank / MaybankFacade.java @ 44:7a7fb8fcfd6e
History | View | Annotate | Download (5.49 KB)
1 |
package my.com.upass.maybank; |
---|---|
2 |
|
3 |
import java.util.Map; |
4 |
|
5 |
import javax.jws.WebParam; |
6 |
import javax.jws.WebResult; |
7 |
import javax.jws.WebService; |
8 |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
9 |
|
10 |
import my.com.upass.util.MapAdapter; |
11 |
|
12 |
@WebService
|
13 |
public interface MaybankFacade extends MinimalMaybankFacade { |
14 |
|
15 |
@WebResult(name = "responseCode") |
16 |
int newAdminUser(
|
17 |
@WebParam(name = "appAccessId") String appAccessId, |
18 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
19 |
@WebParam(name = "username") String username, |
20 |
@WebParam(name = "hashedPassword") String hashedPassword); |
21 |
|
22 |
@WebResult(name = "responseCode") |
23 |
int newPublicUser(
|
24 |
@WebParam(name = "appAccessId") String appAccessId, |
25 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
26 |
@WebParam(name = "username") String username, |
27 |
@WebParam(name = "hashedPassword") String hashedPassword, |
28 |
@WebParam(name = "panCC") String panCC); |
29 |
|
30 |
@WebResult(name = "responseCode") |
31 |
int convertPublicToM2u(
|
32 |
@WebParam(name = "appAccessId") String appAccessId, |
33 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
34 |
@WebParam(name = "username") String username, |
35 |
@WebParam(name = "pan1") String pan1, |
36 |
@WebParam(name = "pan2") String pan2); |
37 |
|
38 |
/*
|
39 |
* TODO: What kind of grouping is currently supported?
|
40 |
* As for the parameter:
|
41 |
* Instead of username, shouldn't it be groupname?
|
42 |
*/
|
43 |
@WebResult(name = "responseElement") |
44 |
ResponseElement lookupUsernameByGroup( |
45 |
@WebParam(name = "appAccessId") String appAccessId, |
46 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
47 |
@WebParam(name = "username") String username); |
48 |
|
49 |
@WebResult(name = "responseElement") |
50 |
ResponseElement lookupPanCc( |
51 |
@WebParam(name = "appAccessId") String appAccessId, |
52 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
53 |
@WebParam(name = "panCc") String panCc); |
54 |
|
55 |
@WebResult(name = "responseCode") |
56 |
int deleteUser(
|
57 |
@WebParam(name = "appAccessId") String appAccessId, |
58 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
59 |
@WebParam(name = "username") String username); |
60 |
|
61 |
@WebResult(name = "responseListElement") |
62 |
ResponseListElement searchUserByFilter( |
63 |
@WebParam(name = "appAccessId") String appAccessId, |
64 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
65 |
@XmlJavaTypeAdapter(MapAdapter.class) @WebParam(name = "searchFilter") Map<String, String> searchFilter); |
66 |
|
67 |
@WebResult(name = "responseCode") |
68 |
int changeIdNo(
|
69 |
@WebParam(name = "appAccessId") String appAccessId, |
70 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
71 |
@WebParam(name = "username") String username, |
72 |
@WebParam(name = "idNo") String idNo); |
73 |
|
74 |
@WebResult(name = "responseElement") |
75 |
ResponseElement lookupUsername( |
76 |
@WebParam(name = "appAccessId") String appAccessId, |
77 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
78 |
@WebParam(name = "username") String username); |
79 |
|
80 |
@WebResult(name = "responseElement") |
81 |
ResponseElement lookupPublicUsername( |
82 |
@WebParam(name = "appAccessId") String appAccessId, |
83 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
84 |
@WebParam(name = "username") String username); |
85 |
|
86 |
@WebResult(name = "responseElement") |
87 |
ResponseElement lookupPan1( |
88 |
@WebParam(name = "appAccessId") String appAccessId, |
89 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
90 |
@WebParam(name = "pan1") String pan1); |
91 |
|
92 |
@WebResult(name = "responseElement") |
93 |
ResponseElement lookupPan2( |
94 |
@WebParam(name = "appAccessId") String appAccessId, |
95 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
96 |
@WebParam(name = "pan2") String pan2); |
97 |
|
98 |
/*
|
99 |
* TODO: Currently searchFilter is expected to
|
100 |
* conform with rfc2254. We need to choose an
|
101 |
* appropiate alternative.
|
102 |
*/
|
103 |
|
104 |
@WebResult(name = "responseCode") |
105 |
@Override
|
106 |
int authenticateUser(
|
107 |
@WebParam(name = "appAccessId") String appAccessId, |
108 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
109 |
@WebParam(name = "username") String username, |
110 |
@WebParam(name = "hashedPassword") String hashedPassword); |
111 |
|
112 |
@WebResult(name = "responseCode") |
113 |
@Override
|
114 |
int newUser(
|
115 |
@WebParam(name = "appAccessId") String appAccessId, |
116 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
117 |
@WebParam(name = "username") String username, |
118 |
@WebParam(name = "hashedPassword") String hashedPassword, |
119 |
@WebParam(name = "pan1") String pan1, |
120 |
@WebParam(name = "pan2") String pan2); |
121 |
|
122 |
@WebResult(name = "responseCode") |
123 |
@Override
|
124 |
int changePassword(
|
125 |
@WebParam(name = "appAccessId") String appAccessId, |
126 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
127 |
@WebParam(name = "username") String username, |
128 |
@WebParam(name = "oldHashedPassword") String oldHashedPassword, |
129 |
@WebParam(name = "newHashedPassword") String newHashedPassword); |
130 |
|
131 |
@WebResult(name = "responseCode") |
132 |
@Override
|
133 |
int resetPassword(
|
134 |
@WebParam(name = "appAccessId") String appAccessId, |
135 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
136 |
@WebParam(name = "username") String username, |
137 |
@WebParam(name = "newHashedPassword") String newHashedPassword); |
138 |
|
139 |
@WebResult(name = "responseCode") |
140 |
@Override
|
141 |
int changePan1(
|
142 |
@WebParam(name = "appAccessId") String appAccessId, |
143 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
144 |
@WebParam(name = "username") String username, |
145 |
@WebParam(name = "pan1") String pan1); |
146 |
|
147 |
@WebResult(name = "responseCode") |
148 |
@Override
|
149 |
int changePan2(
|
150 |
@WebParam(name = "appAccessId") String appAccessId, |
151 |
@WebParam(name = "hashedSecretKey") String hashedSecretKey, |
152 |
@WebParam(name = "username") String username, |
153 |
@WebParam(name = "pan2") String pan2); |
154 |
} |