org.asunder
Class AsunderApp

java.lang.Object
  extended by org.asunder.AsunderApp

public class AsunderApp
extends java.lang.Object

Author:
simms2k

Constructor Summary
AsunderApp()
          Creates a new instance of AsunderApp
 
Method Summary
 AsunderNode addNode(java.lang.String loadPath, char[] priKeyPasswd)
          Create an asunder node for DHT functionality
static void installAsunder(char[] priKeyPasswd, java.lang.String installPath)
          Creates an RSA keypair, a keystore, and sets some basic config params
 void saveState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsunderApp

public AsunderApp()
           throws java.security.GeneralSecurityException
Creates a new instance of AsunderApp

Throws:
java.security.GeneralSecurityException
Method Detail

installAsunder

public static void installAsunder(char[] priKeyPasswd,
                                  java.lang.String installPath)
Creates an RSA keypair, a keystore, and sets some basic config params


saveState

public void saveState()

addNode

public AsunderNode addNode(java.lang.String loadPath,
                           char[] priKeyPasswd)
                    throws java.lang.Exception
Create an asunder node for DHT functionality

Parameters:
priKeyPasswd - the password protecting the keystore, config and bootstrap files
loadPath - the root directory for this node
Throws:
java.lang.Exception