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 public key issued by the TrustPin dashboard
  • Parameter configurationURL: Optional override for the configuration source. Defaults to null for the TrustPin-hosted configuration
  • 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,
});