// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright 2020 Raritan Inc. All rights reserved.
//
// This file was generated by IdlC from Security.idl.

using System;
using System.Linq;
using LightJson;
using Com.Raritan.Idl;
using Com.Raritan.JsonRpc;
using Com.Raritan.Util;

#pragma warning disable 0108, 0219, 0414, 1591

namespace Com.Raritan.Idl.security {

  public class SSHSettings : ICloneable {
    public object Clone() {
      SSHSettings copy = new SSHSettings();
      copy.allowPasswordAuth = this.allowPasswordAuth;
      copy.allowPublicKeyAuth = this.allowPublicKeyAuth;
      return copy;
    }

    public LightJson.JsonObject Encode() {
      LightJson.JsonObject json = new LightJson.JsonObject();
      json["allowPasswordAuth"] = this.allowPasswordAuth;
      json["allowPublicKeyAuth"] = this.allowPublicKeyAuth;
      return json;
    }

    public static SSHSettings Decode(LightJson.JsonObject json, Agent agent) {
      SSHSettings inst = new SSHSettings();
      inst.allowPasswordAuth = (bool)json["allowPasswordAuth"];
      inst.allowPublicKeyAuth = (bool)json["allowPublicKeyAuth"];
      return inst;
    }

    public bool allowPasswordAuth = false;
    public bool allowPublicKeyAuth = false;
  }
}
