Builder

class Builder

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Configures this to not authenticate the HTTPS server on to hostname. This makes the user vulnerable to man-in-the-middle attacks and should only be used only in private development environments and only to carry test data.

Link copied to clipboard

Add all of the host platform's trusted root certificates. This set varies by platform (Android vs. Java), by platform release (Android 4.4 vs. Android 9), and with user customizations.

Link copied to clipboard

Add a trusted root certificate to use when authenticating a peer. Peers must provide a chain of certificates whose root is one of these.

Link copied to clipboard
Link copied to clipboard

Configure the certificate chain to use when being authenticated. The first certificate is the held certificate, further certificates are included in the handshake so the peer can build a trusted path to a trusted root certificate.