AESSocket Manager

constructor(host: String, serverPort: Int, ivSpec: String, secretKey: String, algorithm: BaseCipher.Algorithm)

Constructor to init AESSocketManager

Parameters

host

: server host used in the communication

serverPort

: server port used in the communication

ivSpec

: initialization vector as String

secretKey

: secret key used in the Cipher as String

algorithm

: algorithm used for AES cipher

Throws

when an error occurred


constructor(host: String, serverPort: Int, ivSpec: IvParameterSpec, secretKey: SecretKey, algorithm: BaseCipher.Algorithm)

Constructor to init AESSocketManager

Parameters

host

: server host used in the communication

serverPort

: server port used in the communication

ivSpec

: initialization vector as IvParameterSpec

secretKey

: secret key used in the Cipher as SecretKey

algorithm

: algorithm used for AES cipher

Throws

when an error occurred


constructor(host: String, serverPort: Int, aesClientCipher: AESClientCipher)

Constructor to init AESSocketManager

Parameters

host

: server host used in the communication

serverPort

: server port used in the communication

aesClientCipher

: the AES cipher used during the communication


constructor(allowMultipleListeners: Boolean, ivSpec: String, secretKey: String, algorithm: BaseCipher.Algorithm)

Constructor to init AESSocketManager

Parameters

allowMultipleListeners

: whether accept multiple listeners at the same time

ivSpec

: initialization vector as String

secretKey

: secret key used in the Cipher as String

algorithm

: algorithm used for AES cipher

Throws

when an error occurred


constructor(allowMultipleListeners: Boolean, ivSpec: IvParameterSpec, secretKey: SecretKey, algorithm: BaseCipher.Algorithm)

Constructor to init AESSocketManager

Parameters

allowMultipleListeners

: whether accept multiple listeners at the same time

ivSpec

: initialization vector as IvParameterSpec

secretKey

: secret key used in the Cipher as SecretKey

algorithm

: algorithm used for AES cipher

Throws

when an error occurred


constructor(allowMultipleListeners: Boolean, aesClientCipher: AESClientCipher)

Constructor to init AESSocketManager

Parameters

allowMultipleListeners

: whether accept multiple listeners at the same time

aesClientCipher

: the AES cipher used during the communication

Throws

when an error occurred