IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keygenerators
Class PKCS11KeyGenerator

java.lang.Object
  extended by javax.crypto.KeyGeneratorSpi
      extended by iaik.pkcs.pkcs11.provider.keygenerators.PKCS11KeyGenerator
All Implemented Interfaces:
PKCS11EngineClass
Direct Known Subclasses:
AesKeyGenerator, Cast128KeyGenerator, Cast3KeyGenerator, CastKeyGenerator, Des2KeyGenerator, DesEdeKeyGenerator, DesKeyGenerator, GenericSecretKeyGenerator, IdeaKeyGenerator, PKCS11KeyDerivation, Rc2KeyGenerator, Rc4KeyGenerator, Rc5KeyGenerator, SSL3PremasterkeyGenerator

public abstract class PKCS11KeyGenerator
extends javax.crypto.KeyGeneratorSpi
implements PKCS11EngineClass

This is a generic key generator that generates keys on a token. Through a PKCS11KeyGenerationSpec parameters object, the application can control the generation of keys; e.g. give a key template.

Author:
Karl Scheibelhofer

Constructor Summary
PKCS11KeyGenerator()
          Default constructor.
 
Method Summary
 boolean isSupportedBy(TokenManager tokenManager)
          Check, if the current token of the given token manager supports the required features for this engine class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKCS11KeyGenerator

public PKCS11KeyGenerator()
Default constructor.

Method Detail

isSupportedBy

public boolean isSupportedBy(TokenManager tokenManager)
Check, if the current token of the given token manager supports the required features for this engine class.

Specified by:
isSupportedBy in interface PKCS11EngineClass
Parameters:
tokenManager - The token manager. Used to get information about the current token.
Returns:
True, if this engine class can be used with the currently present token of the given token manager.
Preconditions
(tokenManager <> null)

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