code: private X509Certificate[] getPeerCertificates() {
          X509Certificate[] rc = null;
          SSLContext ssl = this.connection.getSSLContext();
          if (null != ssl && (ssl.getNeedClientAuth() || ssl.getWantClientAuth())) {
              try {
                  Object[] objs = ssl.getSession().getPeerCertificates();
                  if (null != objs) {
                      rc = (X509Certificate[]) objs;
                  }
              } catch (Throwable t) {
                  FFDCFilter.processException(t,
                                              getClass().getName(), "peercerts",
                                              new Object[] { this, ssl });
                  if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
                      Tr.event(tc, "Error getting peer certs; " + t);
                  }
              }
          }
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              if (null == rc) {
                  Tr.debug(tc, "getPeerCertificates: none");
              } else {
                  Tr.debug(tc, "getPeerCertificates: " + rc.length);
              }
          }
          return rc;
      }
docs: Access any client SSL certificates for this connection.
  
  @return X509Certificate[] - null if non-ssl or none exist