TrustPinConfiguration constructor

const TrustPinConfiguration({
  1. required String organizationId,
  2. required String projectId,
  3. required String publicKey,
  4. Uri? configurationURL,
  5. TrustPinMode mode = TrustPinMode.strict,
})

Creates a TrustPin configuration.

  • Parameter organizationId: Your organization identifier from the TrustPin dashboard
  • Parameter projectId: Your project identifier from the TrustPin dashboard
  • Parameter publicKey: Base64-encoded ECDSA P-256 public key for JWS signature verification
  • Parameter configurationURL: Custom URL for the signed payload (JWS). Defaults to null for CDN-managed projects
  • Parameter mode: The pinning mode (default: TrustPinMode.strict)

Implementation

const TrustPinConfiguration({
  required this.organizationId,
  required this.projectId,
  required this.publicKey,
  this.configurationURL,
  this.mode = TrustPinMode.strict,
});