IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keyfactories
Class RsaKeyFactory

java.lang.Object
  extended by java.security.KeyFactorySpi
      extended by iaik.pkcs.pkcs11.provider.keyfactories.PKCS11KeyFactory
          extended by iaik.pkcs.pkcs11.provider.keyfactories.RsaKeyFactory
All Implemented Interfaces:
PKCS11EngineClass

public class RsaKeyFactory
extends PKCS11KeyFactory

This is a RSA key factory that transforms RSA key specs into PKCS#11 key objects and vice versa. To create PKCS#11 private or public keys, the application cannot pass the actual key specs directly to the factory. It must wrap them into a PKCS11KeySpec, which tells the factory on which token to generate the key. For private keys this key factory supports RSAPrivateKeySpec, RSAPrivateCrtKeySpec and PKCS8EncodedKeySpec. For public keys it supports RSAPublicKeySpec and X509EncodedKeySpec.

Author:
Karl Scheibelhofer

Field Summary
static int PKCS1_VERSION
          The PKCS#1 version field in the ASN.1 encoding.
 
Fields inherited from class iaik.pkcs.pkcs11.provider.keyfactories.PKCS11KeyFactory
PKCS8_VERSION
 
Constructor Summary
RsaKeyFactory()
          Default constructor.
 
Method Summary
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keyfactories.PKCS11KeyFactory
isSupportedBy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PKCS1_VERSION

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

See Also:
Constant Field Values
Constructor Detail

RsaKeyFactory

public RsaKeyFactory()
Default constructor.


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