code: @Override
    public X509Certificate getClientCertificate()
      throws CertificateException
    {
      X509Certificate []certs = getClientCertificates();
  
      if (certs == null || certs.length == 0)
        return null;
      else
        return certs[0];
    }
docs: Returns the client certificate.