}
@Override
public boolean input(JIDContext context, Protocol protocol) {
Auth auth = protocol.cast(Auth.class);
AuthCallback callback = this.authCallbacks.get(auth.getMechanism());
return callback != null ? !callback.auth(auth, context) : !context.write(Failure.INSTANCE_INVALIDMECHANISM).write(Stream.closeGraceFully()).close();
}