示例#1
0
 // I guess if you really want to try a Verify that might fail and catch
 // the exception, then the AssumeValidToken won't happen in that case.
 public void Verify(TParams theParams, string tokenValue)
 {
     RawVerifyWrapper(theParams, tokenValue);
     // I'm not sure this is necessary; hopefully it won't hurt.
     VProgram_API.Assert(tokenValue != null);
     VProgram_API.AssumeValidToken(tokenValue, theParams);
 }
示例#2
0
        public string Generate(TParams theParams)
        {
            var tokenValue = RawGenerateWrapper(theParams);

            VProgram_API.AssumeValidToken(tokenValue, theParams);
            return(tokenValue);
        }