nu.zoom.swing.desktop.plugin.portunis.impl
Class KeyStoreHandlerImpl
java.lang.Object
nu.zoom.swing.desktop.plugin.portunis.impl.KeyStoreHandlerImpl
- All Implemented Interfaces:
- KeyStoreHandler
public class KeyStoreHandlerImpl
- extends Object
- implements KeyStoreHandler
- Version:
- $Revision: 1.2 $
- Author:
- $Author: johan $
- See Also:
KeyStoreHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyStoreHandlerImpl
public KeyStoreHandlerImpl()
createKeyStore
public KeyStore createKeyStore(String dn)
- Description copied from interface:
KeyStoreHandler
- Create an empty keystore - NOT IMPLEMENTED YET
- Specified by:
createKeyStore in interface KeyStoreHandler
- Parameters:
dn - The name of the keystore.
- Returns:
- A newly created keystore.
loadKeyStore
public KeyStoreWrapper loadKeyStore(File filename,
KeyStoreType type,
char[] password)
throws KeyStoreException,
NoSuchAlgorithmException,
CertificateException,
FileNotFoundException,
IOException
- Specified by:
loadKeyStore in interface KeyStoreHandler
- Throws:
KeyStoreException
NoSuchAlgorithmException
CertificateException
FileNotFoundException
IOException
getLoadedKeyStores
public KeyStoreWrapper[] getLoadedKeyStores()
- Description copied from interface:
KeyStoreHandler
- Get all active loaded key stores.
- Specified by:
getLoadedKeyStores in interface KeyStoreHandler
- Returns:
- The current known keystores
saveKeyStore
public void saveKeyStore(KeyStoreWrapper wrapper,
char[] password)
throws KeyStoreException,
NoSuchAlgorithmException,
CertificateException,
IOException
- Description copied from interface:
KeyStoreHandler
- Write a keystore to disk.
- Specified by:
saveKeyStore in interface KeyStoreHandler
- Parameters:
wrapper - The keystore to save.password - The integrity check password.
- Throws:
KeyStoreException
NoSuchAlgorithmException
CertificateException
IOException
saveKeyStoreAs
public void saveKeyStoreAs(KeyStoreWrapper wrapper,
File newFileName,
char[] password)
throws KeyStoreException,
NoSuchAlgorithmException,
CertificateException,
IOException
- Description copied from interface:
KeyStoreHandler
- Write a keystore to disk, using another name for the file than the file
used to load the keystore.
- Specified by:
saveKeyStoreAs in interface KeyStoreHandler
- Parameters:
wrapper - The keystore to write to disk.newFileName - The filename to use.
- Throws:
KeyStoreException
NoSuchAlgorithmException
CertificateException
IOException
Copyright © 2010. All Rights Reserved.