private String createInfoString(X509Certificate certificate, String authType, boolean isVerifyingClient) {
        return String.format("DN='%s', SANs=%s, authType='%s', isVerifyingClient='%b', mode=%s",
                certificate.getSubjectX500Principal(), X509CertificateUtils.getSubjectAlternativeNames(certificate),
                authType, isVerifyingClient, mode);
    }
A {@link X509ExtendedTrustManager} that performs additional certificate verification through {@link PeerAuthorizer}.

Implementation assumes that provided {@link X509ExtendedTrustManager} will throw {@link IllegalArgumentException}
when chain is empty or null.

@author bjorncs
security-utils/src/main/java/com/yahoo/security/tls/PeerAuthorizerTrustManager.java