Last change
on this file since 95d372e was
95d372e,
checked in by Antonio Araujo Brett <aaraujo@…>, 11 years ago
|
Mejoras en archivos para desplegar correctamente los errores de firmas en proceso de verificación. Resta implementar la traducción de errores.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | package ve.gob.cenditel.tibisaymovil; |
---|
2 | |
---|
3 | import java.io.Serializable; |
---|
4 | import java.util.ArrayList; |
---|
5 | |
---|
6 | //clase que abstrae un objeto de tipo detalle de error de firma |
---|
7 | public class SignatureErrorDetail implements Serializable { |
---|
8 | /** |
---|
9 | * |
---|
10 | */ |
---|
11 | private static final long serialVersionUID = 1L; |
---|
12 | private String mSigner; |
---|
13 | private String mError; |
---|
14 | private ArrayList<String> mlistError; |
---|
15 | |
---|
16 | public SignatureErrorDetail(String signer, String error){ |
---|
17 | mSigner = signer; |
---|
18 | mError = error; |
---|
19 | setListError(null); |
---|
20 | } |
---|
21 | |
---|
22 | public SignatureErrorDetail(String signer, ArrayList<String> list){ |
---|
23 | mSigner = signer; |
---|
24 | mError = null; |
---|
25 | setListError(list); |
---|
26 | } |
---|
27 | |
---|
28 | public void setName(String signer) { |
---|
29 | this.mSigner = signer; |
---|
30 | } |
---|
31 | |
---|
32 | public String getSigner() { |
---|
33 | return mSigner; |
---|
34 | } |
---|
35 | |
---|
36 | public void setError(String error) { |
---|
37 | this.mError = error; |
---|
38 | } |
---|
39 | |
---|
40 | public String getError() { |
---|
41 | return mError; |
---|
42 | } |
---|
43 | |
---|
44 | public void setListError(ArrayList<String> mlistError) { |
---|
45 | this.mlistError = mlistError; |
---|
46 | } |
---|
47 | |
---|
48 | public ArrayList<String> getListError() { |
---|
49 | return mlistError; |
---|
50 | } |
---|
51 | |
---|
52 | |
---|
53 | public String getTransalatedStringError() { |
---|
54 | |
---|
55 | // TODO implementar aqui la traduccion de los errores |
---|
56 | |
---|
57 | return mlistError.get(0); |
---|
58 | } |
---|
59 | |
---|
60 | } // fin de clase SignatureErrorDetail |
---|
Note: See
TracBrowser
for help on using the repository browser.