IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.keygenerators
Class PKCS11EcbModeKeyDerivationSpec

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.PKCS11EcbModeKeyDerivationSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec, java.security.spec.KeySpec
Direct Known Subclasses:
PKCS11AesCbcKeyDerivationSpec, PKCS11DesCbcKeyDerivationSpec

public class PKCS11EcbModeKeyDerivationSpec
extends PKCS11KeyDerivationSpec

Has to be used for specifying a data-blob which is then encrypted by the given base key to form a new key as specified in the keyTemplate. This Spec is used by the key derivation mechanisms in ECB mode.


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
PKCS11EcbModeKeyDerivationSpec(iaik.pkcs.pkcs11.objects.SecretKey baseKey, byte[] data, iaik.pkcs.pkcs11.objects.SecretKey keyTemplate)
          Instantiates a new sped.
PKCS11EcbModeKeyDerivationSpec(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.SecretKey baseKey, byte[] data, iaik.pkcs.pkcs11.objects.SecretKey keyTemplate, boolean useROSession, boolean useUserSession)
          Deprecated.  
 
Method Summary
 byte[] getData()
          Gets the data.
 
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

PKCS11EcbModeKeyDerivationSpec

public PKCS11EcbModeKeyDerivationSpec(TokenManager tokenManager,
                                      iaik.pkcs.pkcs11.objects.SecretKey baseKey,
                                      byte[] data,
                                      iaik.pkcs.pkcs11.objects.SecretKey keyTemplate,
                                      boolean useROSession,
                                      boolean useUserSession)
Deprecated. 

Instantiates a new sped.

Parameters:
tokenManager - the token manager
baseKey - the base key
keyTemplate - the key template
data - the data
useROSession - the use ro session
useUserSession - the use user session

PKCS11EcbModeKeyDerivationSpec

public PKCS11EcbModeKeyDerivationSpec(iaik.pkcs.pkcs11.objects.SecretKey baseKey,
                                      byte[] data,
                                      iaik.pkcs.pkcs11.objects.SecretKey keyTemplate)
Instantiates a new sped.

Parameters:
baseKey - the base key
keyTemplate - the key template
data - the data
Method Detail

getData

public byte[] getData()
Gets the data.

Returns:
the data

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