TrustPinConfiguration constructor
const
TrustPinConfiguration({
- required String organizationId,
- required String projectId,
- required String publicKey,
- Uri? configurationURL,
- 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 tonullfor 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,
});