Метод | Описание | |
---|---|---|
Decode ( string token, string key, bool verify = true ) : string |
Creates a JWT given a payload, the signing key, and the algorithm to use. Given a JWT, decode it and return the JSON payload.
|
|
DecodeToObject ( string token, string key, bool verify = true ) : object |
Given a JWT, decode it and return the payload as an object (by deserializing it with System.Web.Script.Serialization.JavaScriptSerializer).
|
Метод | Описание | |
---|---|---|
Base64UrlDecode ( string input ) : byte[] | ||
Base64UrlEncode ( byte input ) : string | ||
CreateHMACVerifier ( HMAC>.Func |
||
GetHashAlgorithm ( string algorithm ) : JwtHashAlgorithm | ||
JsonWebToken ( ) : System | ||
VerifyRSAHash ( string algorithm ) : Func |
public static Decode ( string token, string key, bool verify = true ) : string | ||
token | string | The JWT. |
key | string | The key used to sign the token. |
verify | bool | Whether to verify the signature (default is true). |
Результат | string |
public static DecodeToObject ( string token, string key, bool verify = true ) : object | ||
token | string | The JWT. |
key | string | The key that was used to sign the JWT. |
verify | bool | Whether to verify the signature (default is true). |
Результат | object |