Exemple #1
0
        internal static Renewal Create(PasswordGenerator generator)
        {
            var ret = new Renewal
            {
                New = true,
                Id  = ShortGuid.NewGuid().ToString()
            };

            return(ret);
        }
Exemple #2
0
        internal static Renewal Create(string id, PasswordGenerator generator)
        {
            var ret = new Renewal
            {
                New         = true,
                Id          = string.IsNullOrEmpty(id) ? ShortGuid.NewGuid().ToString() : id,
                PfxPassword = generator.Generate()
            };

            return(ret);
        }
Exemple #3
0
        internal static Renewal Create(string?id, int renewalDays, PasswordGenerator generator)
        {
            var ret = new Renewal
            {
                New         = true,
                Id          = string.IsNullOrEmpty(id) ? ShortGuid.NewGuid().ToString() : id,
                PfxPassword = new ProtectedString(generator.Generate()),
                RenewalDays = renewalDays
            };

            return(ret);
        }
Exemple #4
0
        internal static Renewal Create(string?id, ScheduledTaskSettings settings, PasswordGenerator generator)
        {
            var ret = new Renewal
            {
                New         = true,
                Id          = string.IsNullOrEmpty(id) ? ShortGuid.NewGuid().ToString() : id,
                PfxPassword = new ProtectedString(generator.Generate()),
                Settings    = settings
            };

            return(ret);
        }