com.mypos.myposcheckout.ipc

Class Config

java.lang.Object com.mypos.myposcheckout.ipc.Config


public class Config
extends java.lang.Object
IPC Configuration class. Contains the values used as required parameters for all API calls.

Constructor Summary

Constructors
Constructor and Description
Config() 

Method Summary

All MethodsInstance MethodsConcrete Methods
Modifier and Type Method and Description
java.security.PublicKey getAPIPublicKey() 
java.net.URL getIpcUrl() 
int getKeyIndex() 
java.lang.String getLang() 
java.security.PrivateKey getPrivateKey() 
java.lang.String getSid() 
java.lang.String getSource() 
java.lang.String getVersion() 
java.lang.String getWalletNumber() 
void loadPrivateKeyFromFile(java.lang.String privateKeyFilePath) 
void loadPrivateKeyFromString(java.lang.String privateKeyString) 
void loadPublicKeyFromFile(java.lang.String publicKeyFilePath) 
void loadPublicKeyFromString(java.lang.String publicKeyString) 
void setAPIPublicKey(java.security.PublicKey APIPublicKey) 
void setIpcUrl(java.net.URL ipcUrl) 
void setKeyIndex(int keyIndex) 
void setLang(java.lang.String lang) 
void setPrivateKey(java.security.PrivateKey privateKey) 
void setSid(java.lang.String sid) 
void setVersion(java.lang.String version) 
void setWalletNumber(java.lang.String walletNumber) 
boolean validate()
Checks if the class members are valid API request parameter values.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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.