Esempio n. 1
0
        public PersistentPrivateKeyProvider(
            ISerializer serializer
            , IHash hash
            , ILogger logger
            , ICustomDateTime customDateTime
            , IOptions <PersistenPrivateKeyConfiguration> options
            , string ppkDirectory = null//Optional With InjectionContructor
            )
        {
            this.serializer     = serializer;
            this.hash           = hash;
            this.logger         = logger;
            this.customDateTime = customDateTime;
            this.ppkPath        = Path.Combine(string.IsNullOrEmpty(ppkDirectory)
                                                    ? Directory.GetCurrentDirectory()
                                                    : ppkDirectory, ".ppk");

            this.Minutes2IncrementExpirtationDate = options.Value.Minutes2IncrementExpirtationDate ?? 60 * 24 * 30;

            Init();
        }
Esempio n. 2
0
 public void TestInit()
 {
     this.customDateTime = new CustomDateTime();
 }