bc-java icon indicating copy to clipboard operation
bc-java copied to clipboard

UnsupportedOperationException in ProvSSLSession#getRequestedServerNames

Open trnguyencflt opened this issue 1 year ago • 2 comments

Hi,

Could you please let me know if there is plan to support ProvSSLSession#getRequestedServerNames for BCJSSE?

Regards, Truc

trnguyencflt avatar Aug 13 '24 11:08 trnguyencflt

~This seems to break the javadoc spec~

~> Implementation Requirements: This method throws UnsupportedOperationException by default. Classes derived from ExtendedSSLSession must implement this method.~

Wrong method, sorry.

yschimke avatar Dec 28 '24 14:12 yschimke

We provide support for Bouncy Castle in Jetty, and for a server the support for SNI is important, so this is a gentle push to implement the relevant method, or at least not throw 😃

We will implement a workaround for now by catching and ignoring UnsupportedOperationException, but would be great if this issue could be addressed.

Thanks!

sbordet avatar Mar 19 '25 16:03 sbordet