SSLPinningAdapter class
SSL Pinning Adapter for Dio
This adapter implements certificate pinning by validating the server's certificate public key against a list of known SHA-256 hashes.
Similar to the React Native implementation using axios adapter.
Constructors
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
-
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
Static Methods
-
configureDio(
Dio dio, String environment) → void - Configure Dio with SSL pinning for the given environment
-
getPinnedDomain(
String environment) → String - Get pinned domains for an environment
-
shouldPinDomain(
String url, String environment) → bool - Validate a specific URL against SSL pins