IAIK PKCS#11 Wrapper
version 1.5

iaik.pkcs.pkcs11.objects
Interface Object.VendorDefinedObjectBuilder

Enclosing class:
Object

public static interface Object.VendorDefinedObjectBuilder

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

Version:
1.0
Author:
Karl Scheibelhofer

Method Summary
 Object build(Session session, long objectHandle)
          This method should instantiate 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 instantiate 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.

IAIK PKCS#11 Wrapper
version 1.5

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.5