< prev index next >

src/jdk.crypto.ec/share/classes/sun/security/ec/ECPrivateKeyImpl.java

Print this page

        

*** 71,89 **** private ECParameterSpec params; /** * Construct a key from its encoding. Called by the ECKeyFactory. */ ! ECPrivateKeyImpl(byte[] encoded) throws InvalidKeyException { decode(encoded); } /** * Construct a key from its components. Used by the * KeyFactory. */ ! ECPrivateKeyImpl(BigInteger s, ECParameterSpec params) throws InvalidKeyException { this.s = s; this.params = params; // generate the encoding algid = new AlgorithmId --- 71,89 ---- private ECParameterSpec params; /** * Construct a key from its encoding. Called by the ECKeyFactory. */ ! public ECPrivateKeyImpl(byte[] encoded) throws InvalidKeyException { decode(encoded); } /** * Construct a key from its components. Used by the * KeyFactory. */ ! public ECPrivateKeyImpl(BigInteger s, ECParameterSpec params) throws InvalidKeyException { this.s = s; this.params = params; // generate the encoding algid = new AlgorithmId
< prev index next >