com.ibm.crypto.pkcs11impl.provider
Class PKCS11KeySpec

java.lang.Object
  extended by com.ibm.crypto.pkcs11impl.provider.PKCS11KeySpec
All Implemented Interfaces:
java.security.spec.KeySpec

public class PKCS11KeySpec
extends java.lang.Object
implements java.security.spec.KeySpec

This class specifies a PKCS11 key via it's PKCS11 Object.


Constructor Summary
PKCS11KeySpec(com.ibm.pkcs11.PKCS11Object key)
          Uses the PKCS11Object to build a PKCS11 key.
 
Method Summary
 com.ibm.pkcs11.PKCS11Object getObject()
          Returns the key material.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKCS11KeySpec

public PKCS11KeySpec(com.ibm.pkcs11.PKCS11Object key)
Uses the PKCS11Object to build a PKCS11 key.

Parameters:
key - the PKCS11Object that contains the key material.
Method Detail

getObject

public com.ibm.pkcs11.PKCS11Object getObject()
Returns the key material.

Returns:
the key material.