|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.myjavaworld.jftp.ssl.KeyStoreManager
public class KeyStoreManager
| Constructor Summary | |
|---|---|
KeyStoreManager()
|
|
| Method Summary | |
|---|---|
static void |
addClientCertificate(Certificate[] chain)
Adds the given certificate chain to the client certificates store. |
static void |
addServerCertificate(Certificate[] chain)
Adds the given certificate chain to the server certificates store. |
static void |
deleteClientCertificate(String alias)
|
static void |
deleteServerCertificate(String alias)
|
static KeyStore |
getClientCertificateStore()
Returns the key store that has all client certificates. |
static KeyStore |
getServerCertificateStore()
Returns the key store that has all trusted server certificates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyStoreManager()
| Method Detail |
|---|
public static KeyStore getServerCertificateStore()
throws KeyStoreException
KeyStoreException
public static KeyStore getClientCertificateStore()
throws KeyStoreException
KeyStoreException
public static void addServerCertificate(Certificate[] chain)
throws KeyStoreException
chain - certificate chain
KeyStoreException
public static void addClientCertificate(Certificate[] chain)
throws KeyStoreException
chain - certificate chain
KeyStoreException
public static void deleteServerCertificate(String alias)
throws KeyStoreException
KeyStoreException
public static void deleteClientCertificate(String alias)
throws KeyStoreException
KeyStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||