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()); }
public string Serialize(Krb5ConfigurationSerializationConfig serializationConfig) { return(Krb5ConfigurationSerializer.Serialize(this, serializationConfig)); }
public static Krb5Config Parse(string config) => Krb5ConfigurationSerializer.Deserialize(config).ToConfigObject();
public string Serialize() { return(Krb5ConfigurationSerializer.Serialize(this)); }