IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.random
Class PKCS11RandomNoSetSeedSpi

java.lang.Object
  extended by java.security.SecureRandomSpi
      extended by iaik.pkcs.pkcs11.provider.random.PKCS11RandomSpi
          extended by iaik.pkcs.pkcs11.provider.random.PKCS11RandomNoSetSeedSpi
All Implemented Interfaces:
PKCS11EngineClass, java.io.Serializable

public class PKCS11RandomNoSetSeedSpi
extends PKCS11RandomSpi

An implementation of the SecureRandomSpi that uses a PKCS#11 token to gereate random data and seeds. It operates like the PKCS11RandomSpi, but does not try to write (set) any seed to the token. This implementation can be used, if the underlying token supports random generation but cannot be seeded externally.

Author:
Karl Scheibelhofer
See Also:
Serialized Form

Constructor Summary
PKCS11RandomNoSetSeedSpi()
          This default constructor always links this random class to the first provider instance, because there are no means in the JCE to find out our provider instance.
PKCS11RandomNoSetSeedSpi(TokenManager tokenManager)
          This constructor links this random class to the given token manager.
 
Method Summary
 
Methods inherited from class iaik.pkcs.pkcs11.provider.random.PKCS11RandomSpi
isSupportedBy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKCS11RandomNoSetSeedSpi

public PKCS11RandomNoSetSeedSpi()
                         throws IAIKPkcs11Exception
This default constructor always links this random class to the first provider instance, because there are no means in the JCE to find out our provider instance.

Throws:
IAIKPkcs11Exception - If there is no IAIKPkcs11 instance available.

PKCS11RandomNoSetSeedSpi

public PKCS11RandomNoSetSeedSpi(TokenManager tokenManager)
                         throws IAIKPkcs11Exception
This constructor links this random class to the given token manager. It uses this token manager to access the token.

Parameters:
tokenManager - The manager of the token we use for random generation.
Throws:
IAIKPkcs11Exception - If there is no IAIKPkcs11 instance available.

IAIK PKCS#11 Provider API Documentation
version 1.6

IAIK JavaSecurity Website http://jce.iaik.tugraz.at/

IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2004, IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved.
version 1.6