Zum Inhalt springen

Getting Started

GitHub
Terminalfenster
bun add @capgo/capacitor-ssl-pinning
bunx cap sync
import { SSLPinning } from '@capgo/capacitor-ssl-pinning';

Gibt die aktive native Konfiguration an, die dem Plugin sichtbar ist.

import { SSLPinning } from '@capgo/capacitor-ssl-pinning';
await SSLPinning.getConfiguration();

Derzeit sichtbare statische SSL-Zuverlässigkeitskonfiguration für das Plugin.

export interface SSLPinningConfigurationState {
/**
* Whether at least one certificate is configured for native pinning.
*/
configured: boolean;
/**
* Certificate paths from `capacitor.config.*` relative to the app root.
*/
certs: string[];
/**
* Fully-qualified URLs that should bypass SSL pinning.
*/
excludedDomains: string[];
}

Plugin-Version-Payload.

export interface PluginVersionResult {
/**
* Version identifier returned by the platform implementation.
*/
version: string;
}

Diese Seite wird aus dem Plugin generiert. src/definitions.tsRe-run die Synchronisierung, wenn die öffentliche API upstream geändert wird.

Wenn Sie " Getting Started " zum Planen von Sicherheit und Compliance verwenden, verbinden Sie es mit Verwenden Sie @capgo/capacitor-ssl-pinning für die native Fähigkeit in Verwenden Sie @capgo/capacitor-ssl-pinning, Verschlüsselung für die Implementierungsdetails in Verschlüsselung, Konzformität für die Implementierungsdetails in Konzformität, Capgo Sicherheits-Scanner für den Produktworkflow in Capgo Sicherheits-Scanner, und Capgo Sicherheit für den Produktworkflow in Capgo Sicherheit.