use super::i_garnet_authenticator::IGarnetAuthenticator;
pub struct GarnetNoAuthAuthenticator;
impl IGarnetAuthenticator for GarnetNoAuthAuthenticator {
fn is_authenticated(&self) -> bool {
true
}
fn can_authenticate(&self) -> bool {
false
}
fn has_acl_support(&self) -> bool {
false
}
fn authenticate(&mut self, _password: &[u8], _username: &[u8]) -> bool {
debug_assert!(false, "No auth authenticator should never authenticate.");
false
}
}