RSASocket Manager

constructor(host: String, serverPort: Int, privateKey: String, publicKey: String)
constructor(host: String, serverPort: Int, privateKey: PrivateKey, publicKey: PublicKey)

Constructor to init RSASocketManager

Parameters

host

: server host used in the communication

serverPort

: server port used in the communication

privateKey

: the private key used to decrypt the content

publicKey

: the public key used to encrypt the content


constructor(host: String, serverPort: Int, keyPair: KeyPair)

Constructor to init RSASocketManager

Parameters

host

: server host used in the communication

serverPort

: server port used in the communication

keyPair

: key pair from fetch the private and the public key


constructor(host: String, serverPort: Int, rsaClientCipher: RSAClientCipher)

Constructor to init RSASocketManager

Parameters

host

: server host used in the communication

serverPort

: server port used in the communication

rsaClientCipher

: the RSA cipher used during the communication


constructor(allowMultipleListeners: Boolean, privateKey: String, publicKey: String)
constructor(allowMultipleListeners: Boolean, privateKey: PrivateKey, publicKey: PublicKey)

Constructor to init RSASocketManager

Parameters

allowMultipleListeners

: whether accept multiple listeners at the same time

privateKey

: the private key used to decrypt the content

publicKey

: the public key used to encrypt the content


constructor(allowMultipleListeners: Boolean, keyPair: KeyPair)

Constructor to init RSASocketManager

Parameters

allowMultipleListeners

: whether accept multiple listeners at the same time

keyPair

: key pair from fetch the private and the public key


constructor(allowMultipleListeners: Boolean, rsaClientCipher: RSAClientCipher)

Constructor to init RSASocketManager

Parameters

allowMultipleListeners

: whether accept multiple listeners at the same time

rsaClientCipher

: the RSA cipher used during the communication