IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keyfactories
Class PKCS11KeyFactory

java.lang.Object
  extended by java.security.KeyFactorySpi
      extended by iaik.pkcs.pkcs11.provider.keyfactories.PKCS11KeyFactory
All Implemented Interfaces:
PKCS11EngineClass
Direct Known Subclasses:
DhKeyFactory, DsaKeyFactory, EcDsaKeyFactory, RsaKeyFactory

public abstract class PKCS11KeyFactory
extends java.security.KeyFactorySpi
implements PKCS11EngineClass

This is a base key factory that transforms asymmetric key specs into PKCS#11 key objects and vice versa. With PKCS11KeySpec, IAIKPKCS11PrivateKey and IAIKPKCS11PublicKey objects it works with the underlying PKCS#11 module. If it is used with non-PKCS#11 keys or key specs, it uses a software key factory of the configured delegate provider. It is the base class for the implementations of the various key factory algorithms.

Author:
Karl Scheibelhofer

Field Summary
static int PKCS8_VERSION
          The PKCS#8 version field in the ASN.1 encoding.
 
Constructor Summary
PKCS11KeyFactory()
          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
 

Field Detail

PKCS8_VERSION

public static final int PKCS8_VERSION
The PKCS#8 version field in the ASN.1 encoding.

See Also:
Constant Field Values
Constructor Detail

PKCS11KeyFactory

public PKCS11KeyFactory()
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