Code example for DHPublicKey

Methods: getParams, getY

0
    } 
 
    JCEDHPublicKey( 
        DHPublicKey    key)
    { 
        this.y = key.getY();
        this.dhSpec = key.getParams();
    } 
 
    JCEDHPublicKey( 
        DHPublicKeyParameters  params)
    { 
        this.y = params.getY();
        this.dhSpec = new DHParameterSpec(params.getParameters().getP(), params.getParameters().getG(), 0);
    } 
 
    JCEDHPublicKey( 
        BigInteger        y,
        DHParameterSpec   dhSpec)
    { 
        this.y = y;