-
Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
4.0.0.Beta1
-
None
We currently capture this data
private Collection<Principal> createPrincipals() { final Set<Principal> principals = new LinkedHashSet<Principal>(); final SslChannel sslChannel = connection.getSslChannel(); if (sslChannel != null) { // It might be STARTTLS, in which case we can still opt out of SSL final SSLSession session = sslChannel.getSslSession(); if (session != null) { try { principals.add(session.getPeerPrincipal()); } catch (SSLPeerUnverifiedException ignored) { } } } String authorizationId = saslServer.getAuthorizationID(); if (authorizationId != null) { principals.add(new UserPrincipal(authorizationId)); } final ConnectedMessageChannel channel = connection.getChannel(); final InetSocketAddress address = channel.getPeerAddress(InetSocketAddress.class); if (address != null) { principals.add(new InetAddressPrincipal(address.getAddress())); } return Collections.unmodifiableCollection(principals); } }
We should also capture the local address and port.