1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.ksb.security.admin.service; |
17 | |
|
18 | |
import java.security.GeneralSecurityException; |
19 | |
import java.security.KeyStore; |
20 | |
import java.security.KeyStoreException; |
21 | |
import java.security.PrivateKey; |
22 | |
import java.security.cert.Certificate; |
23 | |
import java.util.List; |
24 | |
|
25 | |
import org.kuali.rice.ksb.security.admin.KeyStoreEntryDataContainer; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
public interface JavaSecurityManagementService { |
35 | |
|
36 | |
public void removeClientCertificate(String alias) throws KeyStoreException; |
37 | |
|
38 | |
public KeyStore generateClientKeystore(String alias, String passphrase) throws GeneralSecurityException; |
39 | |
|
40 | |
public List<KeyStoreEntryDataContainer> getListOfModuleKeyStoreEntries(); |
41 | |
|
42 | |
public String getModuleKeyStoreAlias(); |
43 | |
|
44 | |
public String getModuleKeyStoreLocation(); |
45 | |
|
46 | |
public String getModuleSignatureAlgorithm(); |
47 | |
|
48 | |
public Certificate getCertificate(String alias) throws KeyStoreException; |
49 | |
|
50 | |
public PrivateKey getModulePrivateKey(); |
51 | |
|
52 | |
public boolean isAliasInKeystore(String alias) throws KeyStoreException; |
53 | |
|
54 | |
public String getCertificateAlias(Certificate certificate) throws KeyStoreException; |
55 | |
|
56 | |
} |