on Validation Failure
abstract fun onValidationFailure(instanceId: String, domain: String, error: TrustPinError, presentedCertificate: X509Certificate)
A definitive pin-validation failure.
Parameters
instance Id
Identifier of the TrustPin instance that evaluated the connection ("default" for TrustPin.default).
domain
The domain the certificate was evaluated against, as evaluated (canonicalized when canonicalization succeeded).
error
presented Certificate
The leaf certificate the server presented. Attacker-supplied data — sanitize before rendering or forwarding.