private void receivedClientCertificate(final CertificateMessage message) throws HandshakeException {
  if (clientCertificate != null && (clientCertificate.getMessageSeq() == message.getMessageSeq())) {
    return;
  }
  clientCertificate=message;
  clientCertificate.verifyCertificate(rootCertificates);
  clientPublicKey=clientCertificate.getPublicKey();
  peerCertPath=message.getCertificateChain();
  handshakeMessages=ByteArrayUtils.concatenate(handshakeMessages,clientCertificate.getRawMessage());
}

private void receivedClientCertificate ( final CertificateMessage message ) throws HandshakeException { if ( clientCertificate != null && ( clientCertificate . getMessageSeq ( ) == message . getMessageSeq ( ) ) ) { return ; } clientCertificate = message ; clientCertificate . verifyCertificate ( rootCertificates ) ; clientPublicKey = clientCertificate . getPublicKey ( ) ; peerCertPath = message . getCertificateChain ( ) ; handshakeMessages = ByteArrayUtils . concatenate ( handshakeMessages , clientCertificate . getRawMessage ( ) ) ; }
if the server requires mutual authentication , the client must send its certificate .
