Class: RASN1::Types::Primitive Abstract
- Defined in:
- lib/rasn1/types/primitive.rb
Overview
This class SHOULD be used as base class for all ASN.1 primitive types.
This class is base class for all ASN.1 primitive types. A primitive type is not Constructed, or it cannot be broken down into more primitive types.
Please note that a primitive type (b.e. OCTET STRING) may be set as constructed, to advertise it contains ASN.1 encoded data.
Direct Known Subclasses
BitString, Boolean, GeneralizedTime, Integer, Null, ObjectId, OctetString, UtcTime
Constant Summary collapse
- ASN1_PC =
Primitive value
0x00
Constants inherited from Base
Base::CLASSES, Base::CLASS_MASK, Base::INDEFINITE_LENGTH, Base::MULTI_OCTETS_ID
Instance Attribute Summary
Attributes inherited from Base
#asn1_class, #default, #name, #options
Method Summary
Methods inherited from Base
#==, #can_build?, constrained?, #constructed?, #der_to_value, #do_parse, #do_parse_explicit, #do_parse_explicit_with_tracing, #do_parse_with_tracing, encoded_type, #explicit?, #id, #implicit?, #initialize, #initialize_copy, #inspect, #optional?, parse, #parse!, #primitive?, #specific_initializer, start_tracing, stop_tracing, #tagged?, #to_der, #trace, #type, type, #value, #value=, #value?, #value_size, #void_value
Constructor Details
This class inherits a constructor from RASN1::Types::Base