TrustPinConfiguration class

Configuration for the TrustPin SDK.

Contains all credentials and settings needed to initialize TrustPin. Create an instance and pass it to TrustPin.setup to configure the SDK.

To load credentials from a platform bundle file (Plist on iOS/macOS, JSON in Android assets) without writing them into Dart source, use TrustPin.setupWithNativeBundle instead.

Example

const config = TrustPinConfiguration(
  organizationId: 'your-org-id',
  projectId: 'your-project-id',
  publicKey: 'LS0tLS1CRUdJTi...',
);

await TrustPin.shared.setup(config);

Constructors

TrustPinConfiguration({required String organizationId, required String projectId, required String publicKey, Uri? configurationURL, TrustPinMode mode = TrustPinMode.strict})
Creates a TrustPin configuration.
const

Properties

configurationURL Uri?
Optional override for the configuration source.
final
hashCode int
The hash code for this object.
no setterinherited
mode TrustPinMode
The pinning mode controlling behavior for unregistered domains.
final
organizationId String
Your organization identifier from the TrustPin dashboard.
final
projectId String
Your project identifier from the TrustPin dashboard.
final
publicKey String
Base64-encoded public key issued by the TrustPin dashboard.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited