TrustPinConfiguration constructor
const
TrustPinConfiguration({})
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 tonullfor the TrustPin-hosted configuration - Parameter
mode: The pinning mode (default: TrustPinMode.strict) - Parameter
embeddedConfigurationFile: Optional bundled signed configuration used only when every online source is unreachable. Defaults tonull
Implementation
const TrustPinConfiguration({
required this.organizationId,
required this.projectId,
required this.publicKey,
this.configurationURL,
this.mode = TrustPinMode.strict,
this.embeddedConfigurationFile,
});