Code example for ECPublicKeySpec

Methods: getParamsgetW

0
    public JCEECPublicKey( 
        String              algorithm,
        ECPublicKeySpec     spec)
    { 
        this.algorithm = algorithm;
        this.ecSpec = spec.getParams();
        this.q = EC5Util.convertPoint(ecSpec, spec.getW(), false);
    } 
 
    public JCEECPublicKey( 
        String              algorithm,
        org.bouncycastle.jce.spec.ECPublicKeySpec     spec)
    { 
        this.algorithm = algorithm;
        this.q = spec.getQ();
 
        if (spec.getParams() != null) // can be null if implictlyCa
        { 
            ECCurve curve = spec.getParams().getCurve();
            EllipticCurve ellipticCurve = EC5Util.convertCurve(curve, spec.getParams().getSeed());