/// <summary>
        /// 凭证验证
        /// </summary>
        /// <returns></returns>
        public CertificateStatue Verifty(string token)
        {
            if (string.IsNullOrWhiteSpace(token))
            {
                return(CertificateStatue.凭证无效);
            }
            CertificateInstance ci = null;

            foreach (var _c in pool)
            {
                if (_c.token == token)
                {
                    _c.ExpiryDate = DateTime.Now.AddSeconds(Config.CertificateInstanceExpiryDate);
                    ci            = _c;
                    ci.RequestCount++;
                    break;
                }
            }

            if (ci != null)
            {
                if (ci.token == token)
                {
                    return(CertificateStatue.凭证有效);
                }
                else
                {
                    return(CertificateStatue.凭证无效);
                }
            }
            else
            {
                return(CertificateStatue.凭证不存在);
            }
        }
 /// <summary>
 /// 更新凭证实例内容
 /// </summary>
 /// <param nickname="ci"></param>
 /// <param nickname="aa"></param>
 /// <returns></returns>
 CertificateInstance UpateCertificateInstance(CertificateInstance ci, AppAuthorizerModel aa)
 {
     if (aa != null)
     {
         if (aa.IsValid() == CertificateStatue.凭证有效)
         {
             return(ToCertificateInstance(aa));
         }
         else
         {
             return(null);
         }
     }
     else
     {
         return(null);
     }
 }