# Interface ICefX509Certificate

Description
Hierarchy
Methods

## Unit

uCEFInterfaces

## Declaration

`type ICefX509Certificate = interface(ICefBaseRefCounted)`

## Description

Interface representing a X.509 certificate.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_x509_certificate_capi.h">CEF source file: /include/capi/cef_x509_certificate_capi.h (cef_x509_certificate_t))

## Hierarchy

- IInterface
- ICefBaseRefCounted
- ICefX509Certificate

## Overview

### Methods

Public | `function GetSubject: ICefX509CertPrincipal;`
Public | `function GetIssuer: ICefX509CertPrincipal;`
Public | `function GetSerialNumber: ICefBinaryValue;`
Public | `function GetValidStart: TCefBaseTime;`
Public | `function GetValidExpiry: TCefBaseTime;`
Public | `function GetValidStartAsDateTime: TDateTime;`
Public | `function GetValidExpiryAsDateTime: TDateTime;`
Public | `function GetDerEncoded: ICefBinaryValue;`
Public | `function GetPemEncoded: ICefBinaryValue;`
Public | `function GetIssuerChainSize: NativeUInt;`
Public | `procedure GetDEREncodedIssuerChain(chainCount: NativeUInt; var chain : TCefBinaryValueArray);`
Public | `procedure GetPEMEncodedIssuerChain(chainCount: NativeUInt; var chain : TCefBinaryValueArray);`

## Description

### Methods

Public | `function GetSubject: ICefX509CertPrincipal;`
Returns the subject of the X.509 certificate. For HTTPS server certificates this represents the web server. The common name of the subject should match the host name of the web server. ###### Attributes GUID['{C897979D-F068-4428-82DF-4221612FF7E0}']

Public | `function GetIssuer: ICefX509CertPrincipal;`
Returns the issuer of the X.509 certificate.

Public | `function GetSerialNumber: ICefBinaryValue;`
Returns the DER encoded serial number for the X.509 certificate. The value possibly includes a leading 00 byte.

Public | `function GetValidStart: TCefBaseTime;`
Returns the date before which the X.509 certificate is invalid. CefBaseTime.GetTimeT() will return 0 if no date was specified.

Public | `function GetValidExpiry: TCefBaseTime;`
Returns the date after which the X.509 certificate is invalid. CefBaseTime.GetTimeT() will return 0 if no date was specified.

Public | `function GetValidStartAsDateTime: TDateTime;`
Returns the date before which the X.509 certificate is invalid. CefBaseTime.GetTimeT() will return 0 if no date was specified.

Public | `function GetValidExpiryAsDateTime: TDateTime;`
Returns the date after which the X.509 certificate is invalid. CefBaseTime.GetTimeT() will return 0 if no date was specified.

Public | `function GetDerEncoded: ICefBinaryValue;`
Returns the DER encoded data for the X.509 certificate.

Public | `function GetPemEncoded: ICefBinaryValue;`
Returns the PEM encoded data for the X.509 certificate.

Public | `function GetIssuerChainSize: NativeUInt;`
Returns the number of certificates in the issuer chain. If 0, the certificate is self-signed.

Public | `procedure GetDEREncodedIssuerChain(chainCount: NativeUInt; var chain : TCefBinaryValueArray);`
Returns the DER encoded data for the certificate issuer chain. If we failed to encode a certificate in the chain it is still present in the array but is an NULL string.

Public | `procedure GetPEMEncodedIssuerChain(chainCount: NativeUInt; var chain : TCefBinaryValueArray);`
Returns the PEM encoded data for the certificate issuer chain. If we failed to encode a certificate in the chain it is still present in the array but is an NULL string.

Generated by PasDoc 1.0.4.