Hi,

If you have access to the session, you can use this: 

https://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLSession.html#getCipherSuite()

Regards
Sebastian

-----Ursprüngliche Nachricht-----
Von: Mark Carbonaro [mailto:[email protected]] 
Gesendet: Dienstag, 29. März 2016 14:40
An: [email protected]
Betreff: SMTPSClient currently used cipher

Hi,

I am currently using SMTPSClient to send messages via SMTP without issue, I
am able to utilise execTLS() to establish a secure transport.  Everything
works really well and so far no issues.

One question I do have is, how do I return the cipher that has been
negotiated and is currently being used after a successful STARTTLS? While I
can set the desired ciphers using setEnabledCipherSuites(), I'm still not
sure to know which one was selected.

Sorry if this question has an obvious answer, but I've not been able to
find any hints to where to look.

Any information would be greatly appreciated.

Kind Regards,
Mark

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

Reply via email to