IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keygenerators
Class PKCS11SSL3KeyAndMacDerivationParameterSpec

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.PKCS11KeyDerivationSpec
              extended by iaik.pkcs.pkcs11.provider.keygenerators.PKCS11SSL3KeyAndMacDerivationParameterSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec, java.security.spec.KeySpec

public class PKCS11SSL3KeyAndMacDerivationParameterSpec
extends PKCS11KeyDerivationSpec

holds parameters for the SSL3 Key and Mac Derivation engine.


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
PKCS11SSL3KeyAndMacDerivationParameterSpec(iaik.pkcs.pkcs11.objects.SecretKey baseKey, int macSize, int keySize, boolean isExport, byte[] serverRandom, byte[] clientRandom)
          Instantiates a derivation parameter spec.
PKCS11SSL3KeyAndMacDerivationParameterSpec(iaik.pkcs.pkcs11.objects.SecretKey baseKey, int macSize, int keySize, int ivSize, boolean isExport, byte[] serverRandom, byte[] clientRandom)
          Instantiates a new derivation parameter spec.
PKCS11SSL3KeyAndMacDerivationParameterSpec(TokenManager tokenManager, boolean useROSession, boolean useUserSession, iaik.pkcs.pkcs11.objects.SecretKey baseKey, int macSize, int keySize, boolean isExport, byte[] serverRandom, byte[] clientRandom)
          Deprecated.  
PKCS11SSL3KeyAndMacDerivationParameterSpec(TokenManager tokenManager, boolean useROSession, boolean useUserSession, iaik.pkcs.pkcs11.objects.SecretKey baseKey, int macSize, int keySize, int ivSize, boolean isExport, byte[] serverRandom, byte[] clientRandom)
          Deprecated.  
 
Method Summary
 iaik.pkcs.pkcs11.parameters.Parameters getParameters()
          Gets the parameters.
 
Methods inherited from class iaik.pkcs.pkcs11.provider.keygenerators.PKCS11KeyDerivationSpec
getBaseKey
 
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

PKCS11SSL3KeyAndMacDerivationParameterSpec

public PKCS11SSL3KeyAndMacDerivationParameterSpec(TokenManager tokenManager,
                                                  boolean useROSession,
                                                  boolean useUserSession,
                                                  iaik.pkcs.pkcs11.objects.SecretKey baseKey,
                                                  int macSize,
                                                  int keySize,
                                                  boolean isExport,
                                                  byte[] serverRandom,
                                                  byte[] clientRandom)
Deprecated. 

Instantiates a derivation parameter spec.

Parameters:
tokenManager - the token manager
useROSession - the use ro session
useUserSession - the use user session
baseKey - the base key
macSize - the mac size
keySize - the key size
isExport - the is export
serverRandom - the server random
clientRandom - the client random

PKCS11SSL3KeyAndMacDerivationParameterSpec

public PKCS11SSL3KeyAndMacDerivationParameterSpec(iaik.pkcs.pkcs11.objects.SecretKey baseKey,
                                                  int macSize,
                                                  int keySize,
                                                  boolean isExport,
                                                  byte[] serverRandom,
                                                  byte[] clientRandom)
Instantiates a derivation parameter spec.

Parameters:
baseKey - the base key
macSize - the mac size
keySize - the key size
isExport - the is export
serverRandom - the server random
clientRandom - the client random

PKCS11SSL3KeyAndMacDerivationParameterSpec

public PKCS11SSL3KeyAndMacDerivationParameterSpec(TokenManager tokenManager,
                                                  boolean useROSession,
                                                  boolean useUserSession,
                                                  iaik.pkcs.pkcs11.objects.SecretKey baseKey,
                                                  int macSize,
                                                  int keySize,
                                                  int ivSize,
                                                  boolean isExport,
                                                  byte[] serverRandom,
                                                  byte[] clientRandom)
Deprecated. 

Instantiates a new derivation parameter spec.

Parameters:
tokenManager - the token manager
useROSession - the use ro session
useUserSession - the use user session
baseKey - the base key
macSize - the mac size
keySize - the key size
ivSize - the iv size
isExport - the is export
serverRandom - the server random
clientRandom - the client random

PKCS11SSL3KeyAndMacDerivationParameterSpec

public PKCS11SSL3KeyAndMacDerivationParameterSpec(iaik.pkcs.pkcs11.objects.SecretKey baseKey,
                                                  int macSize,
                                                  int keySize,
                                                  int ivSize,
                                                  boolean isExport,
                                                  byte[] serverRandom,
                                                  byte[] clientRandom)
Instantiates a new derivation parameter spec.

Parameters:
baseKey - the base key
macSize - the mac size
keySize - the key size
ivSize - the iv size
isExport - the is export
serverRandom - the server random
clientRandom - the client random
Method Detail

getParameters

public iaik.pkcs.pkcs11.parameters.Parameters getParameters()
Gets the parameters.

Returns:
the parameters

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