org.javasign.operators
Class CryptokiGenerator

java.lang.Object
  |
  +--org.javasign.operators.CryptokiGenerator

public class CryptokiGenerator
extends java.lang.Object


Constructor Summary
CryptokiGenerator(java.lang.String driver, java.io.File src, java.io.File dest, java.lang.String KEY_LABEL, java.lang.String PIN)
           
CryptokiGenerator(java.lang.String driver, java.lang.String KEY_LABEL, java.lang.String PIN)
           
 
Method Summary
 byte[] buildBits(byte[] contentbytes)
           
 byte[] buildSignature(byte[] contentbytes)
           
 void close()
           
 void generate()
           
 java.security.cert.X509Certificate getCertificate()
           
 void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptokiGenerator

public CryptokiGenerator(java.lang.String driver,
                         java.lang.String KEY_LABEL,
                         java.lang.String PIN)
                  throws java.io.IOException,
                         TokenException

CryptokiGenerator

public CryptokiGenerator(java.lang.String driver,
                         java.io.File src,
                         java.io.File dest,
                         java.lang.String KEY_LABEL,
                         java.lang.String PIN)
                  throws java.io.IOException,
                         TokenException,
                         java.lang.NullPointerException
Method Detail

init

public void init()
          throws java.io.IOException,
                 TokenException,
                 java.lang.NullPointerException
java.io.IOException
TokenException
java.lang.NullPointerException

generate

public void generate()
              throws java.io.IOException,
                     TokenException,
                     java.security.NoSuchProviderException,
                     java.security.InvalidAlgorithmParameterException,
                     java.security.NoSuchAlgorithmException,
                     java.security.cert.CertStoreException,
                     CMSException
java.io.IOException
TokenException
java.security.NoSuchProviderException
java.security.InvalidAlgorithmParameterException
java.security.NoSuchAlgorithmException
java.security.cert.CertStoreException
CMSException

buildSignature

public byte[] buildSignature(byte[] contentbytes)
                      throws java.security.NoSuchAlgorithmException,
                             TokenException
java.security.NoSuchAlgorithmException
TokenException

getCertificate

public java.security.cert.X509Certificate getCertificate()
                                                  throws java.security.NoSuchAlgorithmException,
                                                         TokenException
java.security.NoSuchAlgorithmException
TokenException

buildBits

public byte[] buildBits(byte[] contentbytes)
                 throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException

close

public void close()
           throws TokenException
TokenException