CertificatePinningRule class

A set of accepted certificate checks for one or more host patterns.

Empty hosts applies the rule to every SDK-owned TLS connection. Multiple rules may match the same host. Matching rules are merged by check type, so rules are additive instead of first-match-wins.

Constructors

CertificatePinningRule({List<String> hosts = const [], List<String> primaryPins = const [], List<String> backupPins = const [], List<CertificateBytes> pinnedLeafCertificates = const [], List<CertificateBytes> trustedCertificates = const []})
const

Properties

allPins List<String>
no setter
backupPins List<String>
Backup SHA-256 SPKI pins, formatted as sha256/<base64>.
final
hashCode int
The hash code for this object.
no setterinherited
hasPinnedLeafCertificates bool
no setter
hasSpkiPins bool
no setter
hasTrustedCertificates bool
no setter
hosts List<String>
Host patterns this rule applies to.
final
isEnabled bool
no setter
pinnedLeafCertificates List<CertificateBytes>
PEM or DER encoded leaf certificates that may exactly match the peer leaf certificate for matching hosts.
final
primaryPins List<String>
Primary SHA-256 SPKI pins, formatted as sha256/<base64>.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trustedCertificates List<CertificateBytes>
PEM or DER encoded certificates to use as the TLS trust store for matching hosts.
final

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