@Override public void initialize() { try { SaslClient sc = Sasl.createSaslClient(mech, null, "memcached", serverName, props, cbh); byte[] response = buildResponse(sc); String mechanism = sc.getMechanismName(); prepareBuffer(mechanism, 0, response); } catch (SaslException e) { // XXX: Probably something saner can be done here. throw new RuntimeException("Can't make SASL go.", e); } }
@Override public void initialize() { try { SaslClient sc=Sasl.createSaslClient(mech, null, "memcached", serverName, props, cbh); byte[] response = buildResponse(sc); String mechanism = sc.getMechanismName(); prepareBuffer(mechanism, 0, response); } catch(SaslException e) { // XXX: Probably something saner can be done here. throw new RuntimeException("Can't make SASL go.", e); } }
@Override public void initialize() { try { SaslClient sc = Sasl.createSaslClient(mech, null, "memcached", serverName, props, cbh); byte[] response = buildResponse(sc); String mechanism = sc.getMechanismName(); prepareBuffer(mechanism, 0, response); } catch (SaslException e) { // XXX: Probably something saner can be done here. throw new RuntimeException("Can't make SASL go.", e); } }
@Override public void initialize() { try { SaslClient sc = Sasl.createSaslClient(mech, null, "memcached", serverName, props, cbh); byte[] response = buildResponse(sc); String mechanism = sc.getMechanismName(); getLogger().debug("Using SASL auth mechanism: " + mechanism); prepareBuffer(mechanism, 0, response); } catch (SaslException e) { // XXX: Probably something saner can be done here. throw new RuntimeException("Can't make SASL go.", e); } }
@Override public void initialize() { try { SaslClient sc = Sasl.createSaslClient(mech, null, "memcached", serverName, props, cbh); byte[] response = buildResponse(sc); String mechanism = sc.getMechanismName(); getLogger().debug("Using SASL auth mechanism: " + mechanism); prepareBuffer(mechanism, 0, response); } catch (SaslException e) { // XXX: Probably something saner can be done here. throw new RuntimeException("Can't make SASL go.", e); } }