Class I3Jws
Data class for the NENA I3V3 JSON Web Signature type. See Section E.11.4.1 of NENA-STA-010.3.
Inherited Members
Namespace: Ng911Common
Assembly: Ng911Lib.dll
Syntax
public class I3Jws
Constructors
| Edit this page View SourceI3Jws()
Default constructor
Declaration
public I3Jws()
I3Jws(object)
Constructs an I3Jws from an object.
Declaration
public I3Jws(object Obj)
Parameters
Type | Name | Description |
---|---|---|
object | Obj | Object to build the I3Jws object for. |
Properties
| Edit this page View SourceProtected
Base64Url encoded protected header part of the JWs
Declaration
[JsonPropertyName("protected")]
public string Protected { get; set; }
Property Value
Type | Description |
---|---|
string |
payload
Base64Url encoded payload of the JWS
Declaration
public string payload { get; set; }
Property Value
Type | Description |
---|---|
string |
signature
Base64Url encoded digital signature
Declaration
public string signature { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceBas64UrlToBase64(string)
Converts a Base64Url encoded string to a Base64 encoded string by replacing '-' with '+' and '_' with '/'. See Section 5 of RFC 4648. The padding character ('=') is not modified.
Declaration
public static string Bas64UrlToBase64(string b64Urlstring)
Parameters
Type | Name | Description |
---|---|---|
string | b64Urlstring |
Returns
Type | Description |
---|---|
string | The Base64Url encoded string |
Base64ToBase64Url(string)
Converts a Base64 encoded string to a Base64Url encode string by replacing '+' with '-' and '/' with '_'. See Section 5 of RFC 4648. The padding character ('=') is not modified.
Declaration
public static string Base64ToBase64Url(string b64string)
Parameters
Type | Name | Description |
---|---|---|
string | b64string |
Returns
Type | Description |
---|---|
string | The Base64Url encoded string |
Base64UrlStringToJsonString(string)
Converts a Base64Url encode string into a string that represents a JSON object.
Declaration
public static string Base64UrlStringToJsonString(string b64UrlString)
Parameters
Type | Name | Description |
---|---|---|
string | b64UrlString | Input Base64Url encode string. |
Returns
Type | Description |
---|---|
string | Returns a string containing the JSON representation of the object |
JsonObjToBase64Url(object)
Converts an object to a Base64Url string by serializing it as a JSON string then encoding it using Base64Url encoding.
Declaration
public static string JsonObjToBase64Url(object Obj)
Parameters
Type | Name | Description |
---|---|---|
object | Obj | Contains the object to convert to JSON |
Returns
Type | Description |
---|---|
string | Returns the Base64Url encoded JSON binary object |