Example #1
0
        public static Krb5Config CurrentUser(string path = null)
        {
            if (string.IsNullOrWhiteSpace(path))
            {
                path = DefaultUserConfigurationPath;
            }

            if (File.Exists(path))
            {
                return(Krb5ConfigurationSerializer.Deserialize(File.ReadAllText(path)).ToConfigObject());
            }

            return(Default());
        }
Example #2
0
 public static Krb5Config Parse(string config) => Krb5ConfigurationSerializer.Deserialize(config).ToConfigObject();