/*
 * hunt-amqp: AMQP library for D programming language, based on hunt-net.
 *
 * Copyright (C) 2018-2019 HuntLabs
 *
 * Website: https://www.huntlabs.net
 *
 * Licensed under the Apache-2.0 License.
 *
 */
module hunt.amqp.sasl.impl.ProtonSaslAnonymousImpl;
import hunt.amqp.sasl.impl.ProtonSaslMechanismImpl;
import hunt.amqp.sasl.ProtonSaslMechanism;
class ProtonSaslAnonymousImpl : ProtonSaslMechanismImpl {

  public static  string MECH_NAME = "ANONYMOUS";

  public byte[] getInitialResponse() {
    return EMPTY;
  }

  public byte[] getChallengeResponse(byte[] challenge) {
    return EMPTY;
  }

  public int getPriority() {
    return PRIORITY.LOWEST.getValue();
  }

  public string getName() {
    return MECH_NAME;
  }

  public bool isApplicable(string username, string password) {
    return true;
  }
}