123456789_123456789_123456789_123456789_123456789_

Class: OpenSSL::ASN1::ObjectId

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: OpenSSL::ASN1::Primitive
Defined in: ext/openssl/ossl_asn1.c,
ext/openssl/ossl_asn1.c

Overview

Represents the primitive object id for ::OpenSSL::ASN1

Class Method Summary

Primitive - Inherited

.new

value: is mandatory.

ASN1Data - Inherited

.new

value: Please have a look at Constructive and Primitive to see how Ruby types are mapped to ASN.1 types and vice versa.

Instance Attribute Summary

Primitive - Inherited

#tagging

May be used as a hint for encoding a value either implicitly or explicitly by setting it either to :IMPLICIT or to :EXPLICIT.

ASN1Data - Inherited

#infinite_length

Never nil.

#tag

A Number representing the tag number of this ASN1Data.

#tag_class

A Symbol representing the tag class of this ASN1Data.

#value

Carries the value of a ASN.1 type.

Instance Method Summary

  • #ln (also: #long_name)

    The long name of the ObjectId, as defined in openssl/objects.h.

  • #long_name

    Alias for #ln.

  • #oid

    The object identifier as a String.

  • #short_name

    Alias for #sn.

  • #sn (also: #short_name)

    The short name of the ObjectId, as defined in openssl/objects.h.

Primitive - Inherited

#to_der

See ASN1Data#to_der for details.

ASN1Data - Inherited

#to_der

Encodes this ASN1Data into a DER-encoded String value.

Constructor Details

This class inherits a constructor from OpenSSL::ASN1::Primitive

Class Method Details

.register(object_id, short_name, long_name)

This adds a new ObjectId to the internal tables. Where object_id is the numerical form, #short_name is the short name, and #long_name is the long name.

Returns true if successful. Raises an ASN1Error otherwise.

Instance Method Details

#ln Also known as: #long_name

The long name of the ObjectId, as defined in openssl/objects.h.

#long_name

Alias for #ln.

#oid

The object identifier as a String.

#short_name

Alias for #sn.

#sn Also known as: #short_name

The short name of the ObjectId, as defined in openssl/objects.h.