Package org.fisco.bcos.sdk.config
Class Config
java.lang.Object
org.fisco.bcos.sdk.config.Config
public class Config
extends java.lang.Object
Config is to load config file and verify.
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
Modifier and Type Method Description static ConfigOption
load(java.lang.String tomlConfigFile)
static ConfigOption
load(java.lang.String tomlConfigFile, int cryptoType)
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
load
- Throws:
ConfigException
-
load
public static ConfigOption load(java.lang.String tomlConfigFile, int cryptoType) throws ConfigException- Parameters:
tomlConfigFile
- the toml configuration file pathcryptoType
- the type of crypto function- Returns:
- ConfigOption the configuration object
- Throws:
ConfigException
- the configuration exception
-