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 ECDSA P-256 public key for JWS signature verification - Parameter
configurationURL: Custom URL for the signed payload (JWS). Defaults tonullfor 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,
});