Skip to content

TLSSecurity

A static class responsible for handling TLS security operations including setup, unloading databases, and waiting for the setup to finish.

Remarks:

The class manages Root CAs, Intermediate Certificates, Client Certificates, and provides functionality for the setup process.

Fields:

X509Database TLSSecurity.trustedRootCertificates

Database of Root CAs that trusted by the client.

X509Database TLSSecurity.trustedIntermediateCertificates

Database of Intermediate Certificates that trusted by the client.

ClientCredentialDatabase TLSSecurity.ClientCredentials

Database of Client Certificates that's available to send when the server requests it.

Boolean TLSSecurity.IsSetupCalled

True if Setup already called.

Boolean TLSSecurity.IsSetupFinished

True if setup process finished successfully.

Action TLSSecurity.OnSetupFinished

Called when all databases are in place and loaded.

Methods:

Void TLSSecurity.Setup()

Initiates the setup process of the TLS Security package.

Void TLSSecurity.UnloadDatabases()

Unloads all databases (certificates and OCSP cache).

Void TLSSecurity.WaitForSetupFinish()

Blocks the current thread until setup is finished.

Comments