PKI-Lite - v1.0.12
    Preparing search index...

    Represents an ASN.1 OBJECT IDENTIFIER value.

    Object Identifiers (OIDs) are hierarchically structured identifiers used throughout PKI and cryptographic standards to uniquely identify algorithms, attributes, and other objects. They are represented as dot-separated sequences of integers.

    OBJECT IDENTIFIER ::= 
    
    // Create an OID for RSA encryption
    const rsaOid = new ObjectIdentifier({ value: '1.2.840.113549.1.1.1' })

    // Check if it matches a known OID
    if (rsaOid.is('1.2.840.113549.1.1.1')) {
    console.log('RSA algorithm detected')
    }

    // Get friendly name if available
    console.log(rsaOid.friendlyName) // "rsaEncryption"

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    value: string

    The dot-separated OID value (e.g., "1.2.840.113549.1.1.1").

    Accessors

    • get friendlyName(): string

      Gets a human-readable name for this OID if available. Falls back to the OID value if no friendly name is known.

      Returns string

      A friendly name (e.g., "rsaEncryption") or the OID value

    • get pemHeader(): string

      Gets the PEM header name for this object type. Converts the class name to uppercase for use in PEM encoding.

      Returns string

    • get pkiType(): string

      Gets the PKI type name for this object (typically the class name). Used for PEM headers and debugging output.

      Returns string

    Methods