Closed lfmunoz closed 5 years ago
Do you have a use case? What about providing a getter method instead?
@cescoffier Use case is: https://github.com/vert-x3/vertx-stomp/issues/47 . The use case is when we need to look at the certificate that is related to a specific socket. Yes providing a getter also works, and also just returning the call from peerCertificateChain() or sslSession() will also work, because both NetSocket (StompServerTCPConnectionImpl) and ServerWebSocket (StompServerWebSocketConnectionImpl) have that function. I'll change it to whatever you think is best. Just need a way to access the certificate.
Edit: We need to look at the certificate because some applications required that not only the certificate be valid but it must have some specific information. For example, look at this standard
https://usp.technology/specification/security/#agent_authentication
it says:
R-SEC.10 - An Agent certificate MUST contain the URN form of the Agent Endpoint ID in the subjectaltName with a type uniformResourceIdentifier attribute.
The requirement is that the certificate must contain some string on the certificate.
yes signed Eclipse CLA
Thanks!
Didn't link to https://github.com/vert-x3/vertx-stomp/issues/47