IAIK PKCS#11 Wrapper
version 1.2.16

iaik.pkcs.pkcs11.objects
Interface Key.VendorDefinedKeyBuilder

Enclosing interface:
Key

public static interface Key.VendorDefinedKeyBuilder

If an application uses vendor defined keys, it must implement this interface and install such an object handler using setVendorDefinedKeyBuilder.

Invariants

Method Summary
 Object build(Session session, long objectHandle)
          This method should instanciate an Object of this class or of any sub-class.
 

Method Detail

build

public Object build(Session session,
                    long objectHandle)
             throws PKCS11Exception
This method should instanciate an Object of this class or of any sub-class. It can use the given handles and PKCS#11 module to retrieve attributes of the PKCS#11 object from the token.

Parameters:
session - The session to use for reading attributes. This session must have the appropriate rights; i.e. it must be a user-session, if it is a private object.
objectHandle - The object handle as given from the PKCS#111 module.
Returns:
The object representing the PKCS#11 object. The returned object can be casted to the according sub-class.
Throws:
PKCS11Exception - If getting the attributes failed.
Preconditions
(session <> null)
Postconditions
(result <> null)

IAIK PKCS#11 Wrapper
version 1.2.16

IAIK JavaSecurity Website http://jce.iaik.tugraz.at/

IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2002, IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved.