@Override public boolean equals(Object o) { if (o instanceof SaslConnectionParams) { SaslConnectionParams other = (SaslConnectionParams) o; if (!kerberosServerPrimary.equals(other.kerberosServerPrimary)) { return false; } if (qop != other.qop) { return false; } if (!principal.equals(other.principal)) { return false; } if (!mechanism.equals(other.mechanism)) { return false; } if (callbackHandler == null) { if (other.callbackHandler != null) { return false; } } else if (!callbackHandler.equals(other.callbackHandler)) { return false; } return saslProperties.equals(other.saslProperties); } return false; }
mechanism = SaslMechanism.get(saslServer.getMechanismName()); } catch (Exception e) { log.error("Failed to process RPC with SASL mechanism {}", saslServer.getMechanismName());
transport = new TSaslClientTransport(mechanism.getMechanismName(), null, saslParams.getKerberosServerPrimary(), hostname, saslParams.getSaslProperties(), saslParams.getCallbackHandler(), transport);
mechanism = SaslMechanism.get(saslServer.getMechanismName()); } catch (Exception e) { log.error("Failed to process RPC with SASL mechanism {}", saslServer.getMechanismName());
@Override public boolean equals(Object o) { if (o instanceof SaslConnectionParams) { SaslConnectionParams other = (SaslConnectionParams) o; if (!kerberosServerPrimary.equals(other.kerberosServerPrimary)) { return false; } if (qop != other.qop) { return false; } if (!principal.equals(other.principal)) { return false; } if (!mechanism.equals(other.mechanism)) { return false; } if (null == callbackHandler) { if (null != other.callbackHandler) { return false; } } else if (!callbackHandler.equals(other.callbackHandler)) { return false; } return saslProperties.equals(other.saslProperties); } return false; }
transport = new TSaslClientTransport(mechanism.getMechanismName(), null, saslParams.getKerberosServerPrimary(), hostname, saslParams.getSaslProperties(), saslParams.getCallbackHandler(), transport);