1 package es.caib.signatura.impl;
2
3 import java.security.cert.X509Certificate;
4 import java.util.HashMap;
5 import java.util.List;
6
7
8
9
10
11
12
13
14
15
16
17
18
19 public interface CertificateProvider {
20
21
22
23
24
25
26 public List findByAlias(String regExp) throws CertificateProviderException;
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 public void createCertificate(
43 String alias, String keyAlgorithm, int keySize, String commonName, String organizationUnit, String organizationName,
44 String cityName, String province, String state, String keyPass, String keystorePass) throws CertificateProviderException;
45
46
47
48
49
50
51
52
53 public byte[] createPKCS10Request(String alias, String keyPass, String keystorePass) throws CertificateProviderException;
54
55
56
57
58
59
60
61
62
63
64 public X509Certificate[] installPKCS10Response(byte[] response, String alias, String keyPass, String keystorePass) throws CertificateProviderException;
65
66
67
68
69
70
71 public void deleteCertificate(String alias) throws CertificateProviderException;
72
73
74
75
76
77 public List getKeyStoreElements() throws CertificateProviderException;
78
79
80
81
82
83
84 public HashMap getKeyStoreElementsHashMap() throws CertificateProviderException;
85
86
87
88
89
90 public boolean isLoggedIn() throws CertificateProviderException;
91
92 }