protected KeyAgreement(KeyAgreementSpi keyAgreeSpi,Provider provider,String algorithm){
  this.spi=keyAgreeSpi;
  this.provider=provider;
  this.algorithm=algorithm;
  lock=null;
}

protected KeyAgreement ( KeyAgreementSpi keyAgreeSpi , Provider provider , String algorithm ) { this . spi = keyAgreeSpi ; this . provider = provider ; this . algorithm = algorithm ; lock = null ; }
creates a keyagreement object .
