Show / Hide Table of Contents

DataTag Property

DataTag

The value used to specify the storage location.

C#
public int DataTag { get; set; }

Property Value

Type Description
int

Remarks

Where, on the YubiKey, data is stored is determined by the DataTag. It is a number such as 0x005fC102 or 0x005FFF00.

There are some tag values defined by the PIV standard, and there are others defined by Yubico (see the User's Manual entry on GET DATA and GET vendor data). In addition, some numbers are accepted by a YubiKey even though no one has defined their use or contents. These are the numbers 0x005F0000 through 0x005FFFFF (inclusive) not already specified.

When you instantiate an object that is a subclass of this abstract class, this property will be set with the defined (or sometimes it's called the default) DataTag. However, it is possible to change that tag. See the User's manual entry on PIV data objects for more information on what valid data tags are possible. If you try to change to an unsupported tag, the SDK will throw an exception.

Note that changing the DataTag is not recommended, but it is possible because there are some applications that have a use case for such a feature. See the User's Manual entry on PIV data objects. for a more detailed description of this topic.

In this article
Back to top Generated by DocFX