CertificatePinning class

Sub-accessor for certificate / public-key pinning.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createHttpClient({bool rejectUnpinnedHosts = false, Duration? connectionTimeout}) → HttpClient
Returns an HttpClient that refuses connections to pinned hosts whose certificate does not match a configured pin.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pinner({bool rejectUnpinnedHosts = false}) → CertificatePinner
Builds a CertificatePinner from the pins passed to SecureBankKit.initialize.
toString() → String
A string representation of this object.
inherited
validate(String host, {List<String>? pins}) → Future<SecurityResult<bool>>
Connects to host (optionally host:port) and checks its certificate against pins, or against the pins configured for that host when pins is omitted.

Operators

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