123456789_123456789_123456789_123456789_123456789_

Class: OpenSSL::ASN1::BitString

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

Class Method Summary

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

TaggedASN1Data - Included

#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

#indefinite_length

Never nil.

#infinite_length
#tag

An Integer 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

Primitive - Inherited

#to_der

See ASN1Data#to_der for details.

TaggedASN1Data - Included

#initialize

value: is mandatory.

ASN1Data - Inherited

#to_der

Encodes this ASN1Data into a DER-encoded String value.

Constructor Details

.newBitString

[ GitHub ]

  
# File 'ext/openssl/lib/openssl/asn1.rb', line 162

def initialize(*)
  super

  @unused_bits = 0
end

Instance Attribute Details

#unused_bits (rw)

[ GitHub ]

  
# File 'ext/openssl/lib/openssl/asn1.rb', line 160

attr_accessor :unused_bits