IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.pkcs.pkcs11.provider.ciphers
Class PKCS11UnwrapKeySpec

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

public class PKCS11UnwrapKeySpec
extends PKCS11Spec
implements java.security.spec.AlgorithmParameterSpec

Allows for unwrap template specification on the unwrap operation


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
PKCS11UnwrapKeySpec(iaik.pkcs.pkcs11.objects.Key keyTemplate)
          Constructor taking several parameters that control where and how the key should be generated.
PKCS11UnwrapKeySpec(iaik.pkcs.pkcs11.objects.Key keyTemplate, javax.crypto.spec.IvParameterSpec iv)
          Constructor taking several parameters that control where and how the key should be generated.
 
Method Summary
 javax.crypto.spec.IvParameterSpec getIV()
          Gets the iV.
 iaik.pkcs.pkcs11.objects.Key getKeyTemplate()
          Get the template for the new key.
 
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

PKCS11UnwrapKeySpec

public PKCS11UnwrapKeySpec(iaik.pkcs.pkcs11.objects.Key keyTemplate)
Constructor taking several parameters that control where and how the key should be generated.

Parameters:
keyTemplate - The template for the new key.

PKCS11UnwrapKeySpec

public PKCS11UnwrapKeySpec(iaik.pkcs.pkcs11.objects.Key keyTemplate,
                           javax.crypto.spec.IvParameterSpec iv)
Constructor taking several parameters that control where and how the key should be generated.

Parameters:
keyTemplate - The template for the new key.
iv - the iv
Method Detail

getKeyTemplate

public iaik.pkcs.pkcs11.objects.Key getKeyTemplate()
Get the template for the new key.

Returns:
The template for the new key.

getIV

public javax.crypto.spec.IvParameterSpec getIV()
Gets the iV.

Returns:
the iV

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