Code example for ECPrivateKey

Methods: getAlgorithmgetParamsgetS

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