示例#1
0
文件: JwtHeader.cs 项目: i-e-b/ADSD
 /// <summary>
 /// Deserialzes JSON into a <see cref="T:System.IdentityModel.Tokens.JwtHeader" /> instance.
 /// </summary>
 /// <param name="jsonString"> the JSON to deserialize.</param>
 /// <returns>an instance of <see cref="T:System.IdentityModel.Tokens.JwtHeader" />.</returns>
 /// <remarks>use <see cref="P:System.IdentityModel.Tokens.JsonExtensions.Deserializer" /> to customize JSON serialization.</remarks>
 public static JwtHeader Deserialize(string jsonString)
 {
     return(JsonExtensions.DeserializeJwtHeader(jsonString));
 }
示例#2
0
文件: JwtHeader.cs 项目: i-e-b/ADSD
 /// <summary>
 /// Deserializes Base64UrlEncoded JSON into a <see cref="T:System.IdentityModel.Tokens.JwtHeader" /> instance.
 /// </summary>
 /// <param name="base64UrlEncodedJsonString">base64url encoded JSON to deserialize.</param>
 /// <returns>an instance of <see cref="T:System.IdentityModel.Tokens.JwtHeader" />.</returns>
 /// <remarks>use <see cref="P:System.IdentityModel.Tokens.JsonExtensions.Deserializer" /> to customize JSON serialization.</remarks>
 public static JwtHeader Base64UrlDeserialize(string base64UrlEncodedJsonString)
 {
     return(JsonExtensions.DeserializeJwtHeader(Base64UrlEncoder.Decode(base64UrlEncodedJsonString)));
 }