Hi all,

I'm currently workin on adding some "generic" StartTLS support to
James. But while workin on getting this implemented I'm a bit stuck.
Maybe some of you have some ideas.

I think the best way for implementing it is to have a
StartTLSSocketFactory service which should get injected to all
AbstractProtocolHandler subclasses which wants to support StartTLS.
This will be SMTPServer atm, later IMAPServer will be added thought..

For allowing the CommandHandler to trigger the StartTLS I added a
secure() method to the SMTPSession. This method calls a new method in
the ProtocolContext which will pass the currently used socket to the
StartTLSSocketFactory to get a new socket and wire all the streams
again.

Does this sound like a good design ? I'm a bit worried about all the
"wrapping" etc..

Bye,
Norman

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to