From 7b3b22d1840ab124e7aefcd4a98f54cb8831e62f Mon Sep 17 00:00:00 2001 From: gtully Date: Thu, 14 Dec 2017 11:07:15 +0000 Subject: [PATCH] [ARTEMIS-1310] [ARTEMIS-1264] - remove some dead code - krb5 login module and jaas callback handler now have the smarts to query netty --- .../core/remoting/impl/netty/NettyConnection.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java index 601bbfc884..a73983d7ac 100644 --- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java +++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java @@ -497,17 +497,6 @@ public class NettyConnection implements Connection { //never allow this @Override public final ActiveMQPrincipal getDefaultActiveMQPrincipal() { - ChannelHandler channelHandler = channel.pipeline().get("ssl"); - if (channelHandler != null && channelHandler instanceof SslHandler) { - SslHandler sslHandler = (SslHandler) channelHandler; - try { - return new ActiveMQPrincipal(sslHandler.engine().getSession().getPeerPrincipal().getName(), ""); - } catch (SSLPeerUnverifiedException ignored) { - if (logger.isTraceEnabled()) { - logger.trace(ignored.getMessage(), ignored); - } - } - } return null; }