TLS ALPN Proposal
Sean Mullan
sean.mullan at oracle.com
Fri May 22 18:54:04 UTC 2015
On 05/22/2015 12:12 PM, Simone Bordet wrote:
> Would be great if we could make this class a FunctionalInterface
Yes, that would be nice.
>, but
> I guess it's not easy due to lack of commonality between SSLSocket and
> SSLEngine.
> Unless there is a way to abstract something out of those 2:)
There's actually a bunch of methods in common, so one possibility is to
create a new interface containing the common methods (say SSLBase for
now for lack of a better name). Then you could change SSLEngine and
SSLSocket to implement SSLBase (which should be a compatible change),
and then have a single method on ApplicationProtocolSelector. Question
is if there are enough common methods to do what you want? I don't know
enough about ALPN to answer that question.
--Sean
More information about the security-dev
mailing list