pinnedLeafCertificates property
final
PEM or DER encoded leaf certificates that may exactly match the peer leaf certificate for matching hosts.
This is an additional identity check after TLS trust validation succeeds. It does not trust private or self-signed certificates by itself. Configure trustedCertificates as well when the connection should use a custom leaf, intermediate, or root certificate trust store.
Implementation
final List<CertificateBytes> pinnedLeafCertificates;