Constructor Detail
Config
public Config()
throws IPCException
- Throws:
IPCException
Method Detail
getPrivateKey
public java.security.PrivateKey getPrivateKey()
getAPIPublicKey
public java.security.PublicKey getAPIPublicKey()
getKeyIndex
public int getKeyIndex()
getSid
public java.lang.String getSid()
getWalletNumber
public java.lang.String getWalletNumber()
getLang
public java.lang.String getLang()
getVersion
public java.lang.String getVersion()
getSource
public java.lang.String getSource()
getIpcUrl
public java.net.URL getIpcUrl()
setPrivateKey
public void setPrivateKey(java.security.PrivateKey privateKey)
loadPrivateKeyFromString
public void loadPrivateKeyFromString(java.lang.String privateKeyString)
throws IPCException
- Throws:
IPCException
loadPrivateKeyFromFile
public void loadPrivateKeyFromFile(java.lang.String privateKeyFilePath)
throws IPCException
- Throws:
IPCException
setAPIPublicKey
public void setAPIPublicKey(java.security.PublicKey APIPublicKey)
loadPublicKeyFromString
public void loadPublicKeyFromString(java.lang.String publicKeyString)
throws IPCException
- Throws:
IPCException
loadPublicKeyFromFile
public void loadPublicKeyFromFile(java.lang.String publicKeyFilePath)
throws IPCException
- Throws:
IPCException
setKeyIndex
public void setKeyIndex(int keyIndex)
setSid
public void setSid(java.lang.String sid)
setWalletNumber
public void setWalletNumber(java.lang.String walletNumber)
setLang
public void setLang(java.lang.String lang)
setVersion
public void setVersion(java.lang.String version)
setIpcUrl
public void setIpcUrl(java.net.URL ipcUrl)
validate
public boolean validate()
throws IPCException
Checks if the class members are valid API request parameter values.
- Returns:
- true if all members can be used as valid API request parameters
- Throws:
IPCException
- If there are values which are missing, or invalid API request parameters.