Generic utility class for evaluating and generating Basic-Encoding-Rules (BER) encoded
Tag- Length-Value (TLV) data objects.
Namespace:
CardWerk.SmartCard
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Top
Top
Top
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Public Class CardDataObject
This language is not supported or no code example is available.
public class CardDataObject
This language is not supported or no code example is available.
public ref class CardDataObject
This language is not supported or no code example is available.
Name | Description | |
---|---|---|
![]() |
CardDataObject(int) | Constructs an empty constructed data object. |
![]() |
CardDataObject(int, byte[]) | Constructs a primitive data object with the given tag and data. |
Name | Description | |
---|---|---|
![]() |
IsConstructed | Indicates whether this data object is a constructed data object. |
![]() |
Length | Provides the length of the value data of a primitive data object. |
![]() |
List | Provides the list of data objects contained in this constructed data object. |
![]() |
Tag | Provides access to the tag of this data object. |
![]() |
Value | Provides access to the value data of a primitive data object. |
Name | Description | |
---|---|---|
![]() |
ComputeTotalSize(CardDataObjectEncoding) | Computes the total size of the encoded data object including its tag, the length field and the value data. |
![]() |
Find(int, bool) | Finds a contained data object with a given tag. |
![]() |
Generate(CardDataObjectEncoding) | Encodes this data object using TLV encoding into a byte array. |
![]() |
GetBitStringValue() | Retrieve the primitive value of this data object as a bit string encoded according to ASN.1. |
![]() |
GetIntegerValue() | Retrieve the primitive value of this data object as an integer encoded according to ASN.1. |
![]() |
GetStringValue(Encoding) | Retrieve the primitive value of this data object as a string. |
![]() ![]() |
Parse(byte[], ref int, ref int, CardDataObjectEncoding) | Parses a single primitive or constructed TLV encoded data object from the given raw data. |
![]() ![]() |
Parse(byte[]) | Parses a single primitive or constructed BER-TLV encoded data object from the given raw data. |
![]() ![]() |
ParseSimple(byte[]) | Parses a single SIMPLE-TLV encoded data object from the given raw data. |
![]() |
SetStringValue(Encoding, string) | Set the primitive value of this data object from a string. |
![]() |
ToString() | Convert this object into a string representation. |
This utility class is very simple and may not suite all needs for dealing with TLV structures. Anyway it can be used to process most BER-TLV or SIMPLE-TLV encoded data objects.