Code example for ECPrivateKey

Methods: getAlgorithmgetParamsgetS

0
 
    public BCECPrivateKey( 
        ECPrivateKey key,
        ProviderConfiguration configuration)
    { 
        this.d = key.getS();
        this.algorithm = key.getAlgorithm();
        this.ecSpec = key.getParams();
        this.configuration = configuration;
    } 
 
    public BCECPrivateKey( 
        String algorithm,
        org.bouncycastle.jce.spec.ECPrivateKeySpec spec,
        ProviderConfiguration configuration)
    { 
        this.algorithm = algorithm;
        this.d = spec.getD();
 
        if (spec.getParams() != null) // can be null if implicitlyCA
Contextual code suggestions in your IDE  Get Codota for Java