TChilkatCreateCS Delphi Reference
TChilkatCreateCS
Factory class for creating certificate store objects.
Object Creation
var
obj: TChilkatCreateCS;
...
begin
obj := TChilkatCreateCS.Create(Self);
Properties
property LastErrorHtml: WideString readonly
Error information in HTML format for the last method called.
property LastErrorText: WideString readonly
Error information in plain-text format for the last method called.
property LastErrorXml: WideString readonly
Error information in XML format for the last method called.
property ReadOnly: Integer
Determines whether certificate stores are opened with read-only or read/write permissions. Only applies to methods such as OpenCurrentUserStore, where the a readOnly parameter is not present.
property Version: WideString readonly
The version of this component, such as "1.0"
Methods
function CreateFileStore(filename: WideString): TChilkatCertStore;
Creates a file-based certificate store. If 'filename' already exists, the method will fail.
function CreateMemoryStore(): TChilkatCertStore;
Creates a temporary certificate store in memory that is initially empty.
function CreateRegistryStore(regRoot: WideString, regPath: WideString): TChilkatCertStore;
Creates a registry-based certificate store. The 'hiveName' can either be "CurrentUser" or "LocalMachine". The 'regPath' argument should be specified without a leading slash, such as "Software/Chilkat/MyCertStore".
function OpenChilkatStore(): TChilkatCertStore;
Opens the certificate store used by Chilkat Mail and returns the object representing that store.
function OpenCurrentUserStore(): TChilkatCertStore;
Opens the local system's Current User Certificate Store and returns the object representing that store.
function OpenFileStore(filename: WideString, readOnly: Integer): TChilkatCertStore;
Opens an existing file certificate store. To open it read-only, readOnly should be non-zero.
function OpenLocalSystemStore(): TChilkatCertStore;
Opens the local system's Local Machine Certificate Store and returns the object representing that store.
function OpenOutlookStore(): TChilkatCertStore;
Opens the certificate store used by Microsoft Outlook (and Office) and returns the object representing that store.
function OpenRegistryStore(regRoot: WideString, regPath: WideString, readOnly: Integer): TChilkatCertStore;
Opens an existing registry-based certificate store. 'hiveName' should be either "CurrentUser" or "LocalMachine". The 'regPath' argument should be specified without a leading slash, such as "Software/Chilkat/MyCertStore".
procedure SaveLastError(filename: WideString);
Saves the last error information to an XML formatted file.
|