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
HttpClientthat 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(optionallyhost:port) and checks its certificate againstpins, or against the pins configured for that host whenpinsis omitted.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited