@@ -427,7 +427,8 @@ public X509Certificate[] getAcceptedIssuers() {
427427 }
428428 }
429429
430- /** Used to capture the fact that checkServerTrusted has been called for the per-rpc authority verification. */
430+ /** Used to capture the fact that checkServerTrusted has been called for the per-rpc authority
431+ * verification. */
431432 private static class FakeX509ExtendedTrustManager extends X509ExtendedTrustManager {
432433 private final X509ExtendedTrustManager delegate ;
433434 private boolean checkServerTrustedCalled ;
@@ -437,32 +438,34 @@ private FakeX509ExtendedTrustManager(X509ExtendedTrustManager delegate) {
437438 }
438439
439440 @ Override
440- public void checkClientTrusted (X509Certificate [] chain , String authType , Socket socket ) throws CertificateException {
441- }
442-
443- @ Override
444- public void checkServerTrusted (X509Certificate [] chain , String authType , Socket socket ) throws CertificateException {
441+ public void checkServerTrusted (X509Certificate [] chain , String authType , Socket socket )
442+ throws CertificateException {
445443 delegate .checkServerTrusted (chain , authType , socket );
446444 this .checkServerTrustedCalled = true ;
447445 }
448446
449447 @ Override
450- public void checkClientTrusted (X509Certificate [] chain , String authType , SSLEngine engine ) throws CertificateException {
448+ public void checkServerTrusted (X509Certificate [] chain , String authType , SSLEngine engine )
449+ throws CertificateException {
450+ delegate .checkServerTrusted (chain , authType , engine );
451451 }
452452
453453 @ Override
454- public void checkServerTrusted (X509Certificate [] chain , String authType , SSLEngine engine ) throws CertificateException {
455- delegate .checkServerTrusted (chain , authType , engine );
454+ public void checkServerTrusted (X509Certificate [] chain , String authType )
455+ throws CertificateException {
456+ delegate .checkServerTrusted (chain , authType );
456457 }
457458
458459 @ Override
459- public void checkClientTrusted (X509Certificate [] chain , String authType ) throws CertificateException {
460+ public void checkClientTrusted (X509Certificate [] chain , String authType , SSLEngine engine ) {
461+ }
460462
463+ @ Override
464+ public void checkClientTrusted (X509Certificate [] chain , String authType ) {
461465 }
462466
463467 @ Override
464- public void checkServerTrusted (X509Certificate [] chain , String authType ) throws CertificateException {
465- delegate .checkServerTrusted (chain , authType );
468+ public void checkClientTrusted (X509Certificate [] chain , String authType , Socket socket ) {
466469 }
467470
468471 @ Override
0 commit comments