Implements encoding, decoding, and printing of NAS messages. NasCodec
can
Public Member Functions | |
String | DecodeToJSON (byte[] nasMessage) |
Converts a binary NAS message to a JSON value. More... | |
String | DecodeToJSON (byte[] nasMessage, int offset, int length) |
Converts a binary NAS message to a JSON value. More... | |
String | DecodeToXML (byte[] nasMessage) |
Converts a binary NAS message to an XML document. More... | |
String | DecodeToXML (byte[] nasMessage, int offset, int length) |
Converts a binary NAS message to an XML document. More... | |
String | DecodeToText (byte[] nasMessage) |
Converts a binary NAS message to ASN.1 value notation format. More... | |
String | DecodeToText (byte[] nasMessage, int offset, int length) |
Converts a binary NAS message to ASN.1 value notation format. More... | |
byte[] | Encode (T nasMessage) |
Encodes a C# object that represents a NAS message into binary bytes. The byte[] that receives the binary bytes is allocated dynamically. More... | |
String | PrintJSON (T nasMessage) |
Converts a C# object that represents a NAS message to a JSON value. Unlike the decodeToJSON method, it does not throw an exception when the C# object has semantic errors, but returns a null string . You can use the Diagnostics property to retrieve a diagnostic report in that case. More... | |
String | PrintXML (T nasMessage) |
Converts a C# object that represents a NAS message to an XML document. Unlike the decodeToXML method, it does not throw an exception when the C# object has semantic errors, but returns a null string . You can use the Diagnostics property to retrieve a diagnostic report in that case. More... | |
String | PrintMessage (T nasMessage) |
Converts a C# object that represents a NAS message into ASN.1 value notation format. Unlike the decodeToText method, it does not throw an exception when the C# object has semantic errors but returns a null string . You can use the Diagnostics property to retrieve a diagnostic report in that case. More... | |
Properties | |
Originator | Originator [get, set] |
Identifies the originator of a NAS message. Some NAS messages can originate only from the network, while other NAS messages can be sent only by the UE. More... | |
bool | HasDiagnostics [get] |
Indicates whether the most recent invocation of the codec API revealed defects in the NAS message. More... | |
Diagnostics | Diagnostics [get] |
Returns a diagnostic report created by the most recent invocation of the codec API. If the operation aborted due to an exception, the diagnostic report returned is identical to the diagnostics reported by the diagnostics() method of NASException . Even when the exception is not thrown, the operation can return a non-empty report because the encoder or decoder detected non-critical defects that did not cause it to treat a message as invalid. More... | |
JSONOptions | JSONOptions [get] |
Specifies formatting options that are used when a NAS message is converted to JSON format. More... | |
XMLOptions | XMLOptions [get] |
Specifies formatting options that are used when a NAS message is converted to an XML document. More... | |
TextOptions | TextOptions [get] |
Specifies formatting options that are used when a NAS message is converted to ASN.1 value notation format. More... | |
Implements encoding, decoding, and printing of NAS messages. NasCodec
can
T | Defines a NAS PDU type. |
T | : | class | |
T | : | NasPdu |
|
inline |
Converts a binary NAS message to a JSON value.
nasMessage | The binary NAS message. |
NASDecodeFailedException | Is thrown when conversion fails because the binary message is syntactically invalid and cannot be decoded. |
string
that contains the JSON value.
|
inline |
Converts a binary NAS message to a JSON value.
nasMessage | The binary NAS message. |
offset | The offset in the buffer where the message starts. |
length | The length of the binary message in bytes. |
NASDecodeFailedException | Is thrown when conversion fails because the binary message is syntactically invalid and cannot be decoded. |
string
that contains the JSON value.
|
inline |
Converts a binary NAS message to ASN.1 value notation format.
nasMessage | The binary NAS message. |
NASDecodeFailedException | Is thrown when conversion fails because the binary message is syntactically invalid and cannot be decoded. |
string
that contains the ASN.1 value notation of the message.
|
inline |
Converts a binary NAS message to ASN.1 value notation format.
nasMessage | The binary NAS message. |
offset | The offset in the buffer where the message starts. |
length | The length of the binary message in bytes. |
NASDecodeFailedException | Is thrown when conversion fails because the binary message is syntactically invalid and cannot be decoded. |
string
that contains the ASN.1 value notation of the message.
|
inline |
Converts a binary NAS message to an XML document.
nasMessage | The binary NAS message. |
NASDecodeFailedException | Is thrown when conversion fails because the binary message is syntactically invalid and cannot be decoded. |
string
that contains the XML document.
|
inline |
Converts a binary NAS message to an XML document.
nasMessage | The binary NAS message. |
offset | The offset in the buffer where the message starts. |
length | The length of the binary message in bytes. |
NASDecodeFailedException | Is thrown when conversion fails because the binary message is syntactically invalid and cannot be decoded. |
string
that contains the XML document.
|
inline |
Encodes a C# object that represents a NAS message into binary bytes. The byte[]
that receives the binary bytes is allocated dynamically.
nasMessage | The C# object that represents the NAS message. |
NASEncodeFailedException | Is thrown when the message cannot be encoded because the value represented by nasMessage has semantic errors. |
byte[]
that contains the encoded NAS message.
|
inline |
Converts a C# object that represents a NAS message to a JSON value. Unlike the decodeToJSON
method, it does not throw an exception when the C# object has semantic errors, but returns a null string
. You can use the Diagnostics
property to retrieve a diagnostic report in that case.
nasMessage | The C# object that represents the NAS message. |
string
that contains the JSON object.
|
inline |
Converts a C# object that represents a NAS message into ASN.1 value notation format. Unlike the decodeToText
method, it does not throw an exception when the C# object has semantic errors but returns a null string
. You can use the Diagnostics
property to retrieve a diagnostic report in that case.
nasMessage | The C# object that represents the NAS message. |
string
that contains the ASN.1 value notation for the NAS message.
|
inline |
Converts a C# object that represents a NAS message to an XML document. Unlike the decodeToXML
method, it does not throw an exception when the C# object has semantic errors, but returns a null string
. You can use the Diagnostics
property to retrieve a diagnostic report in that case.
nasMessage | The C# object that represents the NAS message. |
string
that contains the XML document.
|
get |
Returns a diagnostic report created by the most recent invocation of the codec API. If the operation aborted due to an exception, the diagnostic report returned is identical to the diagnostics reported by the diagnostics()
method of NASException
. Even when the exception is not thrown, the operation can return a non-empty report because the encoder or decoder detected non-critical defects that did not cause it to treat a message as invalid.
|
get |
Indicates whether the most recent invocation of the codec API revealed defects in the NAS message.
|
get |
Specifies formatting options that are used when a NAS message is converted to JSON format.
|
getset |
Identifies the originator of a NAS message. Some NAS messages can originate only from the network, while other NAS messages can be sent only by the UE.
|
get |
Specifies formatting options that are used when a NAS message is converted to ASN.1 value notation format.
|
get |
Specifies formatting options that are used when a NAS message is converted to an XML document.