Code example for ECPublicKeySpec

Methods: getParamsgetW

0
        String algorithm,
        ECPublicKeySpec spec,
        ProviderConfiguration configuration)
    { 
        this.algorithm = algorithm;
        this.ecSpec = spec.getParams();
        this.q = EC5Util.convertPoint(ecSpec, spec.getW(), false);
        this.configuration = configuration;
    } 
 
    public BCECPublicKey( 
        String algorithm,
        org.bouncycastle.jce.spec.ECPublicKeySpec spec,
        ProviderConfiguration configuration)
    { 
        this.algorithm = algorithm;
        this.q = spec.getQ();
 
        if (spec.getParams() != null) // can be null if implictlyCa
        { 
Contextual code suggestions in your IDE  Get Codota for Java