コード例 #1
0
        public KeyResolver(List <JsonWebKey> privateJsonWebKeyList, JwksService jwksService, long cacheDurationSeconds) : this()
        {
            PrivateJsonWebKeyList = privateJsonWebKeyList;
            JwksService           = jwksService;

            this.timer.Interval = cacheDurationSeconds * 1000;
            IsCacheExpired      = true;
        }
コード例 #2
0
        /// <summary>
        /// Static Constructor
        /// </summary>
        static KeyResolver()
        {
            PublicJsonWebKeyList  = new List <JsonWebKey>();
            PrivateJsonWebKeyList = new List <JsonWebKey>();
            IsCacheExpired        = true;

            JwksService          = default(JwksService);
            JwksServiceCallCount = 0;
        }