Skip to Content
SDK IntegrationOverview

SDK Overview

TrustPin provides native SDKs for all major mobile and desktop platforms, enabling you to implement OWASP-compliant certificate pinning with minimal integration effort.

Available SDKs

iOS, macOS, watchOS, tvOS & visionOS

  • Language: Swift
  • Package Manager: Swift Package Manager, CocoaPods
  • Minimum Version: iOS 13.0+, macOS 13.0+
  • View iOS SDK Documentation

Android & JVM

Flutter (Cross-Platform)


Quick Integration

All TrustPin SDKs follow a consistent 3-step integration pattern:

1. Install the SDK

Add TrustPin to your project using your platform’s package manager:

  • iOS/macOS: Swift Package Manager or CocoaPods
  • Android: Gradle with Maven Central
  • Flutter: pub.dev package

2. Initialize TrustPin

Add one setup call during app initialization with your project credentials:

  • Organization ID
  • Project ID
  • Public Key (Base64-encoded)

3. Configure HTTP Client

Integrate TrustPin with your HTTP client:

  • iOS: URLSession with TrustPinURLSessionDelegate
  • Android: OkHttp with TrustPinSSLSocketFactory
  • Flutter: Dio with TrustPinDioInterceptor

Key Features

All SDKs provide:

  • OWASP-Compliant Pinning - Implements OWASP Mobile Security Testing Guide recommendations
  • Zero-Downtime Updates - Update certificates remotely without app releases
  • Automatic Validation - Certificate pinning happens automatically on all HTTPS requests
  • Intelligent Caching - 10-minute configuration cache with automatic refresh
  • Strict & Permissive Modes - Control pinning behavior for production vs development
  • Comprehensive Error Handling - Detailed error codes for debugging

Platform-Specific Documentation

Choose your platform to view detailed integration guides, API references, and examples:


Need Help?