IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keygenerators
Class PKCS11SSL3PreMasterKeyGenerationSpec

java.lang.Object
  extended by iaik.pkcs.pkcs11.provider.spec.PKCS11Spec
      extended by iaik.pkcs.pkcs11.provider.keygenerators.PKCS11KeyGenerationSpec
          extended by iaik.pkcs.pkcs11.provider.keygenerators.PKCS11SSL3PreMasterKeyGenerationSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec, java.security.spec.KeySpec

public class PKCS11SSL3PreMasterKeyGenerationSpec
extends PKCS11KeyGenerationSpec

Objects of this algorithm parameters class allows an application to control the generation of PKCS#11 keys using the provided JCE key generators.


Field Summary
 
Fields inherited from class iaik.pkcs.pkcs11.provider.spec.PKCS11Spec
USE_PUBLIC_SESSION, USE_READ_ONLY_SESSION, USE_READ_WRITE_SESSION, USE_USER_SESSION
 
Constructor Summary
PKCS11SSL3PreMasterKeyGenerationSpec(byte majorVersion, byte minorVersion)
          Constructor taking several parameters that control where and how the key should be generated.
PKCS11SSL3PreMasterKeyGenerationSpec(iaik.pkcs.pkcs11.objects.SecretKey keyTemplate, byte majorVersion, byte minorVersion)
          Constructor taking several parameters that control where and how the key should be generated.
PKCS11SSL3PreMasterKeyGenerationSpec(TokenManager tokenManager, boolean useROSession, boolean useUserSession, byte majorVersion, byte minorVersion)
          Deprecated.  
PKCS11SSL3PreMasterKeyGenerationSpec(TokenManager tokenManager, boolean useROSession, boolean useUserSession, iaik.pkcs.pkcs11.objects.SecretKey keyTemplate, byte majorVersion, byte minorVersion)
          Deprecated.  
 
Method Summary
 iaik.pkcs.pkcs11.parameters.VersionParameters getVersionParameter()
          Gets the version parameter.
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keygenerators.PKCS11KeyGenerationSpec
getKeyTemplate
 
Methods inherited from class iaik.pkcs.pkcs11.provider.spec.PKCS11Spec
getPin, getTokenManager, isUseAnonymousRole, isUseROSession, isUseRwSession, isUseSORole, isUseUserRole, isUseUserSession, setPin, setTokenManager, setUseAnonymousRole, setUseSORole, setUseUserRole
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKCS11SSL3PreMasterKeyGenerationSpec

public PKCS11SSL3PreMasterKeyGenerationSpec(TokenManager tokenManager,
                                            boolean useROSession,
                                            boolean useUserSession,
                                            byte majorVersion,
                                            byte minorVersion)
Deprecated. 

Constructor taking several parameters that control where and how the key should be generated.

Parameters:
tokenManager - The manager to handle the token.
useROSession - true (USE_READ_ONLY_SESSION), if the key should be generated using a read-only session. This is only possible for session-objects. false ( USE_READ_WRITE_SESSION) to use a read-write session.
useUserSession - true (USE_USER_SESSION), if the key should be generated using a user session. This is required for private objects (key); i.e. keys that have their private flag set. false (USE_PUBLIC_SESSION) to use a public session. This will only work for public objects.
majorVersion - the major version of the used SSL3 protocol
minorVersion - the minor version of the used SSL3 protocol

PKCS11SSL3PreMasterKeyGenerationSpec

public PKCS11SSL3PreMasterKeyGenerationSpec(byte majorVersion,
                                            byte minorVersion)
Constructor taking several parameters that control where and how the key should be generated.

Parameters:
majorVersion - the major version of the used SSL3 protocol
minorVersion - the minor version of the used SSL3 protocol

PKCS11SSL3PreMasterKeyGenerationSpec

public PKCS11SSL3PreMasterKeyGenerationSpec(TokenManager tokenManager,
                                            boolean useROSession,
                                            boolean useUserSession,
                                            iaik.pkcs.pkcs11.objects.SecretKey keyTemplate,
                                            byte majorVersion,
                                            byte minorVersion)
Deprecated. 

Constructor taking several parameters that control where and how the key should be generated.

Parameters:
tokenManager - The manager to handle the token.
useROSession - true (USE_READ_ONLY_SESSION), if the key should be generated using a read-only session. This is only possible for session-objects. false ( USE_READ_WRITE_SESSION) to use a read-write session.
useUserSession - true (USE_USER_SESSION), if the key should be generated using a user session. This is required for private objects (key); i.e. keys that have their private flag set. false (USE_PUBLIC_SESSION) to use a public session. This will only work for public objects.
keyTemplate - The template for the new key.
majorVersion - the major version of the used SSL3 protocol
minorVersion - the minor version of the used SSL3 protocol

PKCS11SSL3PreMasterKeyGenerationSpec

public PKCS11SSL3PreMasterKeyGenerationSpec(iaik.pkcs.pkcs11.objects.SecretKey keyTemplate,
                                            byte majorVersion,
                                            byte minorVersion)
Constructor taking several parameters that control where and how the key should be generated.

Parameters:
keyTemplate - The template for the new key.
majorVersion - the major version of the used SSL3 protocol
minorVersion - the minor version of the used SSL3 protocol
Method Detail

getVersionParameter

public iaik.pkcs.pkcs11.parameters.VersionParameters getVersionParameter()
Gets the version parameter.

Returns:
the version parameter

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