public class PKCS11Random
extends java.security.SecureRandom
An implementation of the SecureRandom that uses a PKCS#11 token to gereate random data. If this
object is created using the default constructor, and this is always the case when instantiated
through the JCA mechanism, this implementation always links to the first instance of IAIKPkcs11.
To link to a different provider instance, instantiate the PKCS11Random class directly and specify
the provide instance.
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.
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.
public PKCS11Random(java.security.SecureRandomSpi pkcs11RandomImplementation,
IAIKPkcs11 provider)
throws IAIKPkcs11Exception
This constructor links this random class to the given provider instance. It uses the token
manager of this provider to access the token. It uses the given implementation object to
process the requests.
Parameters:
pkcs11RandomImplementation - The random implementation of this random object.
provider - The IAIK PKCS#11 provider instance of this random object.
IAIK at Graz University of Technology, Austria, Europe Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4