ukarim / smppgui

SMPP GUI client
MIT License
8 stars 4 forks source link

added tls support #4

Closed obbyK closed 1 year ago

obbyK commented 1 year ago

Added TLS support using tlsChannel by @marianobarrios.

Added pom file for maven build (didn't touch gradle file,it will probably need an update) and updated gitignore.

Modified module-info to add tls.channel.

I kept the implementation safe by adding the public methods of SmppHandlerImpl back to the interface SmppHandler. Add implementing them in TlsSmppHandlerImpl (basically copy with changes going to the socketchannel). I also added some code to the LoginForm. a simple checkbox, that is used as follows. I made the smppHandler in EventDispatcher generic.

if (tlsCheckBox.isSelected()) { 
    var smppHandler = new TlsSmppHandlerImpl(eventDispatcher);
    eventDispatcher.setSmppHandler(smppHandler);
}

Otheriwise, nothing else was changed.

ukarim commented 1 year ago

@obbyK thanks for your interest in this project. Sorry, but I prefer not to use external libs in this project.