Esempio n. 1
0
 public static T Decode <T>(string token, object key = null)
 {
     return(JWT.jsMapper.Parse <T>(JWT.Decode(token, key)));
 }
Esempio n. 2
0
 public static T Decode <T>(string token, object key, JwsAlgorithm alg)
 {
     return(JWT.jsMapper.Parse <T>(JWT.Decode(token, key, alg)));
 }
Esempio n. 3
0
 public static string Decode(string token, object key = null)
 {
     return(JWT.Decode(token, key, null, null, null));
 }
Esempio n. 4
0
 public static T Decode <T>(string token, object key, JweAlgorithm alg, JweEncryption enc)
 {
     return(JWT.jsMapper.Parse <T>(JWT.Decode(token, key, alg, enc)));
 }
Esempio n. 5
0
        public static string Decode(string token, object key, JweAlgorithm alg, JweEncryption enc)
        {
            JwsAlgorithm?nullable = null;

            return(JWT.Decode(token, key, nullable, new JweAlgorithm?(alg), new JweEncryption?(enc)));
        }