Class TTrustedCerts

Unit

Declaration

type TTrustedCerts = class(TObject)

Description

App-local storage of trusted certs. MT-safe.

Hierarchy

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public procedure Add(const Host: string; const Data: TBytes);
Public function Contains(const Host: string): Boolean; overload;
Public function Contains(const Host: string; pData: Pointer; DataLen: Integer): Boolean; overload;
Public function Contains(const Host: string; const Data: TBytes): Boolean; overload;
Public procedure Clear;

Description

Methods

Public constructor Create;
 
Public destructor Destroy; override;
 
Public procedure Add(const Host: string; const Data: TBytes);

Add a cert to list.

Parameters
Host
- cert host. If empty, cert is considered global
Data
- cert data
Public function Contains(const Host: string): Boolean; overload;

Check if there PROBABLY is a cert in trusted list for the host (i.e., there's at least one trusted cert either global or host-personal.

Parameters
Host
- cert host. If empty, cert is considered global
Returns

True if there's a cert for the host

Public function Contains(const Host: string; pData: Pointer; DataLen: Integer): Boolean; overload;

Check if provided cert is in trusted list. Looks for both host-personal and global certs.

Parameters
Host
- cert host. If empty, cert is considered global
pData
- cert data
DataLen
- length of cert data
Returns

True if cert is found

Public function Contains(const Host: string; const Data: TBytes): Boolean; overload;

Check if provided cert is in trusted list. TBytes variant.

Parameters
Host
- cert host. If empty, search is performed over all list
Data
- cert data
Returns

True if cert is found

Public procedure Clear;

Empty the list


Generated by PasDoc 0.16.0.