|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.util.crypto.PKS12KeyStoreWallet
public class PKS12KeyStoreWallet
A wallet of PKS#12 key files. It is an in-memory storage of PKS12KeyStore instances for users in order to be taken into account by some cryptographic processes to exchange between them digital data.
It is a singleton that manages all the PKS#12 key stores for Silverpeas.
Method Summary | |
---|---|
void |
addKeyStore(String keyFilePath,
String password)
Adds the PKS#12 keys contained in the specified file that is protected with the specified password. |
static PKS12KeyStoreWallet |
getInstance()
Gets the single wallet instance. |
PKS12KeyStore |
getKeyStore(String keyFilePath)
Gets the PKS#12 key store identified by the specified key store file and loaded in this wallet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final PKS12KeyStoreWallet getInstance()
public void addKeyStore(String keyFilePath, String password) throws CryptoException
keyFilePath
- the path of the key store file.password
- the password that protects the key store file.
CryptoException
- if an error occurs while adding the keys into this wallet.public PKS12KeyStore getKeyStore(String keyFilePath) throws CryptoException
keyFilePath
- the path of the file from which the PKS#12 key store was loaded into this
wallet.
CryptoException
- if no such PKS#12 key store exists in this wallet.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |