public ECDHClientKeyExchange(PublicKey clientPublicKey,InetSocketAddress peerAddress){
  super(peerAddress);
  ECPublicKey publicKey=(ECPublicKey)clientPublicKey;
  ECPoint point=publicKey.getW();
  ECParameterSpec params=publicKey.getParams();
  pointEncoded=ECDHECryptography.encodePoint(point,params.getCurve());
}

public ECDHClientKeyExchange ( PublicKey clientPublicKey , InetSocketAddress peerAddress ) { super ( peerAddress ) ; ECPublicKey publicKey = ( ECPublicKey ) clientPublicKey ; ECPoint point = publicKey . getW ( ) ; ECParameterSpec params = publicKey . getParams ( ) ; pointEncoded = ECDHECryptography . encodePoint ( point , params . getCurve ( ) ) ; }
called by the client . generates the client ' s ephemeral ecdh public key ( encoded ) which represents an elliptic curve point .
