I have a Java WebSocket server running on GlassFish, and users are to connect using client TLS certificates that we give them. The distinguished name from the certificate is what we used to identify the user. Once a connection has been made to a ServerEndpoint, my @OnOpen method is called and given a Session object.
I can tell if session.isSecure(), but nothing more than that. The Session object gives me no visibility into the properties of the TLS connection. How do I fetch the distinguished name of a client when they're connected via WebSocket?