@Override
  public X509Certificate getClientCertificate()
    throws CertificateException
  {
    X509Certificate []certs = getClientCertificates();

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