Security-sensitive constants used across the application.
Currently provides the allowed SHA-256 certificate fingerprints for SSL pinning, consumed by configureCertificatePinning.
How to obtain a fingerprint:
openssl s_client -connect api.example.com:443 < /dev/null 2>/dev/null \
| openssl x509 -fingerprint -sha256 -noout \
| sed 's/://g' \
| awk -F= '{print $2}'
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
Constants
-
allowedSHA256Fingerprints
→ const List<
String> - SHA-256 fingerprints of trusted server certificates.