Example #1
0
        public SasTokenValidator()
        {
            policies = new Dictionary <string, ISasPolicy>();
            // add default policy
            var policy = SASPolicyFactory.CreatePolicy("sk", DefaultSecret, 60);

            policies.Add("testKey", policy);
        }
Example #2
0
        public SasTokenValidator(HashType hashType, string keyName, string sharedSecret) : this()
        {
            var policy = SASPolicyFactory.CreatePolicy(keyName, sharedSecret, 60);

            policies.Add("testKey", policy);
        }