Пример #1
0
 /// <summary>
 /// validate that the token has a valid signature
 /// </summary>
 /// <returns>true if the signature is valid, false otherwise</returns>
 public bool SignatureValid()
 {
     try
     {
         var tokenManager = new JwtTokenManager(new LicenseSigningParameters(PublicKey));
         tokenManager.ParseSecurityToken <object>(LicenseData);
         return(true);
     }
     catch
     {
         return(false);
     }
 }