< prev index next >

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

Print this page

        

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