Creates a new ObjectIdentifier instance.
Configuration object
The OID value as string, ObjectIdentifier, or object with toString()
Gets a human-readable name for this OID if available. Falls back to the OID value if no friendly name is known.
A friendly name (e.g., "rsaEncryption") or the OID value
Gets the PEM header name for this object type. Converts the class name to uppercase for use in PEM encoding.
Gets the PKI type name for this object (typically the class name). Used for PEM headers and debugging output.
Compares this PKI object with another for equality. Two objects are considered equal if their DER encodings are identical.
The other PKI object to compare with
true if the objects are equal, false otherwise
Checks if this OID equals another OID.
The OID to compare with (ObjectIdentifier instance or string)
true if the OIDs are equal, false otherwise
Checks if this OID does not equal another OID.
The OID to compare with (ObjectIdentifier instance or string)
true if the OIDs are different, false otherwise
Parses this object as a different PKI type. Useful for converting between related PKI structures.
The target type to parse as
The target type constructor with parsing capabilities
A new instance of the target type
Converts this ObjectIdentifier to its ASN.1 representation.
The ASN.1 OBJECT IDENTIFIER structure
Converts this PKI object to DER (Distinguished Encoding Rules) format.
The DER-encoded bytes of this object
Returns a human-readable string representation of this object. By default, returns the same as toString(), but subclasses can override for more user-friendly output.
A human-readable string representation
Converts this PKI object to PEM (Privacy-Enhanced Mail) format.
A PEM-encoded string with appropriate headers
Returns the string representation of this OID.
The dot-separated OID value
Static
fromCreates an ObjectIdentifier from an ASN.1 structure.
The ASN.1 OBJECT IDENTIFIER to parse
A new ObjectIdentifier instance
Static
fromCreates an ObjectIdentifier from DER-encoded bytes.
The DER-encoded OBJECT IDENTIFIER bytes
A new ObjectIdentifier instance
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.
Asn
Example