Object Identifiers (OIDs) are entities defined by international
standards (ITU-T, ISO, IEC) used to identify objects. In the PKI
context they are used for example to identify encyrption algorithms.
Each root (first integer - see below) denotes the standards body
governing the allocations.
OIDs consist of a hierarchy of integers with each component having a
meaning in the hierarchy. For example, the OID of the DER encoding is
defined in the ITU-T X.680 standard as
joint-iso-itu-t(2) asn1(1) ber-derived(2) distinguished-encoding(1)
where the text before each integer describes its meaning in that
context and the integer is the encoding of that meaning. So the OID
itself would be in character form "2.1.2.1"
(also called the dot
notation introduced by IETF) and in R integer form
c(2, 1, 2, 1)
. Internally, OIDs are represented in their ASN.1
encoding as raw vectors which is the way they are typically used
in files or communication payload.
The following functions are used to operate on OIDs.
oid
creates an OID.
Coercion methods as.integer
and as.character
convert the
OID into its numeric and textural form respectively. as.oid
is
a generic for convering objects into OIDs and is implemented for at
least the above cases.
is.oid
returns TRUE
if the object is an OID.