org.mozilla.jss.pkcs11
public final class PK11Store extends Object implements CryptoStore
| Field Summary | |
|---|---|
| protected TokenProxy | storeProxy |
| protected boolean | updated |
| Constructor Summary | |
|---|---|
| PK11Store(TokenProxy proxy) | |
| protected | PK11Store() |
| Method Summary | |
|---|---|
| void | deleteCert(X509Certificate cert)
Deletes the specified certificate and its associated private
key from the store.
|
| void | deleteCertOnly(X509Certificate cert)
Deletes the specified certificate from the store.
|
| void | deletePrivateKey(PrivateKey key) |
| X509Certificate[] | getCertificates() |
| byte[] | getEncryptedPrivateKeyInfo(X509Certificate cert, PBEAlgorithm pbeAlg, Password pw, int iteration) |
| PrivateKey[] | getPrivateKeys() |
| void | importPrivateKey(byte[] key, PrivateKey.Type type)
Imports a raw private key into this token.
|
| protected void | putCertsInVector(Vector certs) |
| protected void | putKeysInVector(Vector keys) |
Parameters: cert certificate to be deleted
Throws: NoSuchItemOnTokenException If the certificate not found TokenException General token error
Parameters: cert certificate to be deleted
Throws: NoSuchItemOnTokenException If the certificate not found TokenException General token error
Parameters: key The private key.
Throws: TokenException If the key cannot be imported to this token. KeyAlreadyImportedException If the key already on this token.