Make detailed information on TLS connections accessible
As a user of the SDCri library, I want to access detailed information on the underlying TLS connections to a device (Jetty server and Apache client).
The use case is, for example, the logging of information about: Addressing information of the peer, date and time of the handshake, certificate details like distinguished name, extended key usage, TLS version and cypher suite negotiated during the handshake as well as date and time when the last message of a connection has been exchanged.
Therefore, I propose a DPWS config Dpws.HttpConnectionInterceptor
that binds to an interface like this (just an example):
public interface HttpConnectionInterceptor {
enum Source {
CLIENT, SERVER
}
void onFirstIntercept(UUID connectionId, SSLSession sslSession, Source source);
void onIntercept(UUID connectionId);
void onLastIntercept(UUID connectionId);
}
Information on connections of Apache HttpClient and Jetty Webserver could thus be made available to library consumers.
A first merge request draft will follow in the next days