[ARTEMIS-1310] [ARTEMIS-1264] - remove some dead code - krb5 login module and jaas callback handler now have the smarts to query netty
This commit is contained in:
parent
facb6443c2
commit
7b3b22d184
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue