Class KeyStoreUtils


  • public class KeyStoreUtils
    extends java.lang.Object
    Original Code https://github.com/web3j/web3j/blob/master/crypto/src/main/java/org/web3j/crypto/WalletUtils.java Utility functions for working with Keystore files.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String generateWalletFile​(KeystoreFile file, java.io.File destinationDirectory)  
      static Bytes loadPrivateKey​(java.lang.String password, java.io.File source)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • generateWalletFile

        public static java.lang.String generateWalletFile​(KeystoreFile file,
                                                          java.io.File destinationDirectory)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • loadPrivateKey

        public static Bytes loadPrivateKey​(java.lang.String password,
                                           java.io.File source)
                                    throws java.io.IOException,
                                           KeystoreException
        Throws:
        java.io.IOException
        KeystoreException