JSS 3.1

org.mozilla.jss.pkcs11
Class PK11Store

java.lang.Object
  |
  +--org.mozilla.jss.pkcs11.PK11Store

public final class PK11Store
extends java.lang.Object
implements CryptoStore


Field Summary
protected  TokenProxy storeProxy
           
protected  boolean updated
           
 
Constructor Summary
protected PK11Store()
           
  PK11Store(TokenProxy proxy)
           
 
Method Summary
 void deleteCert(X509Certificate cert)
           
 void deletePrivateKey(PrivateKey key)
           
 X509Certificate[] getCertificates()
           
 PrivateKey[] getPrivateKeys()
           
 void importPrivateKey(byte[] key, PrivateKey.Type type)
          Imports a raw private key into this token.
protected  void putCertsInVector(java.util.Vector certs)
           
protected  void putKeysInVector(java.util.Vector keys)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

updated

protected boolean updated

storeProxy

protected TokenProxy storeProxy
Constructor Detail

PK11Store

public PK11Store(TokenProxy proxy)

PK11Store

protected PK11Store()
Method Detail

importPrivateKey

public void importPrivateKey(byte[] key,
                             PrivateKey.Type type)
                      throws TokenException,
                             KeyAlreadyImportedException
Imports a raw private key into this token.
Specified by:
importPrivateKey in interface CryptoStore
Parameters:
key - The private key.
Throws:
TokenException - If the key cannot be imported to this token.
KeyAlreadyImportedException - If the key already on this token.

getPrivateKeys

public PrivateKey[] getPrivateKeys()
                            throws TokenException
Specified by:
getPrivateKeys in interface CryptoStore

putKeysInVector

protected void putKeysInVector(java.util.Vector keys)
                        throws TokenException

deletePrivateKey

public void deletePrivateKey(PrivateKey key)
                      throws NoSuchItemOnTokenException,
                             TokenException
Specified by:
deletePrivateKey in interface CryptoStore

getCertificates

public X509Certificate[] getCertificates()
                                  throws TokenException
Specified by:
getCertificates in interface CryptoStore

putCertsInVector

protected void putCertsInVector(java.util.Vector certs)
                         throws TokenException

deleteCert

public void deleteCert(X509Certificate cert)
                throws NoSuchItemOnTokenException,
                       TokenException
Specified by:
deleteCert in interface CryptoStore

JSS 3.1