Пример #1
0
        public static byte[] DecodeBytes(string token, object key, JwsAlgorithm alg)
        {
            JweAlgorithm? nullable  = null;
            JweEncryption?nullable1 = null;

            return(JWT.DecodeBytes(token, key, new JwsAlgorithm?(alg), nullable, nullable1));
        }
Пример #2
0
 public static byte[] DecodeBytes(string token, object key = null)
 {
     return(JWT.DecodeBytes(token, key, null, null, null));
 }
Пример #3
0
 private static string Decode(string token, object key = null, JwsAlgorithm?jwsAlg = null, JweAlgorithm?jweAlg = null, JweEncryption?jweEnc = null)
 {
     byte[] numArray = JWT.DecodeBytes(token, key, jwsAlg, jweAlg, jweEnc);
     return(Encoding.UTF8.GetString(numArray));
 }