Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6tokenimpl.h File Reference
#include "pkcs11.h"
#include "p6com.h"
#include "p6trustedstorage.h"

Go to the source code of this file.

Classes

interface  P6R::p6ITokenImpl
 
interface  P6R::p6ITokenImpl2
 

Namespaces

 P6R
 

Macros

#define IF_p6ITokenImpl   {0x59b44c1f,0x8032,0x42fe,{0x9d,0x89,0xa0,0x38,0x21,0x45,0x47,0x78}}
 
#define IF_p6ITokenImpl2   {0xb9673084,0x192d,0x4954,{0xa6,0x0b,0x99,0x6f,0x94,0xa0,0x7c,0x76}}
 
#define INTERFACE   p6ITokenImpl
 
#define INTERFACE   p6ITokenImpl2
 

Typedefs

typedef P6R::P6ERR(* P6R::ADD_OBJECT_TO_SESSION )(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, P6BSTR *pGUID, P6ACCESS_TYPE requested)
 
typedef P6UINT32 P6R::P6PKCS11PLUGFLAGS
 

Enumerations

enum  P6R::P6ACCESS_TYPE { P6R::ACCESS_READ_ONLY = 0x00, P6R::ACCESS_READ_WRITE = 0x01 }
 

Variables

const P6PKCS11PLUGFLAGS P6R::P6PKCS11PLUGFLAGS_NOFLAGS = 0x00000000
 
const P6PKCS11PLUGFLAGS P6R::P6PKCS11PLUGFLAGS_VERSIONMAP_OFF = 0x00000001
 

Detailed Description

This interface allows a 3rd party to implement their own token and plug it into the P6R PKCS 11 provider.

A token implementation built to this interface advertises it "name" in two ways: 1) in the p6pkcs11.conf file, "slotType" parameter (see PKCS 11 configuration documentation), and (2) by the "pTokenType" parameter of the initialize() function.

References: 1) OASIS, PKCS #11 Cryptographic Token Interface Base Specification Version 2.40, 16-Nov-2014, Committee Specification 02, http://docs.oasis-open.org/pkcs11-base/v2.40/cs02/pkcs11-basev2.40-cs02.doc

Definition in file p6tokenimpl.h.