@Override
    public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
        defaultTrustManager.checkServerTrusted(chain, authType);
        authorizePeer(chain, authType, false, null);
    }
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