pinTrustedCertificatesPublicKey method

Future<void> pinTrustedCertificatesPublicKey (
  1. {@required List<String> certificateFileNames}
)

Pins the host X509 certificate public key to the client application. Secured calls to the pinned remote host will be checked for a public key match. Secured calls to other hosts containing other certificates will be rejected. Some mobile operating systems might cache the certificate validation check results. Your app must call the certificate pinning method before making a secured request. Calling this method a second time overrides any previous pinning operation. The certificates must be in DER format. When multiple certificates are pinned, a secured call is checked for a match with any one of the certificates

Implementation

Future<void> pinTrustedCertificatesPublicKey(
    {@required List<String> certificateFileNames}) async {
  _channel.invokeMethod(WLCLIENT_CERTIFICATE_PINNING,
      <String, dynamic>{CERTIFICATE_FILENAMES: certificateFileNames});
}