Repository URL to install this package:
|
Version:
2.2.2-1 ▾
|
U:RDoc::NormalClass[iI"Primitive:EFI"OpenSSL::ASN1::Primitive;FI"OpenSSL::ASN1::ASN1Data;Fo:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[ I"NThe parent class for all primitive encodings. Attributes are the same as ;TI"3for ASN1Data, with the addition of +tagging+. ;TI"MPrimitive values can never be infinite length encodings, thus it is not ;TI"Kpossible to set the +infinite_length+ attribute for Primitive and its ;TI"sub-classes.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"<Primitive sub-classes and their mapping to Ruby classes;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o; ;[I"?OpenSSL::ASN1::EndOfContent <=> +value+ is always +nil+;To;;0;[o; ;[I">OpenSSL::ASN1::Boolean <=> +value+ is a +Boolean+;To;;0;[o; ;[I"=OpenSSL::ASN1::Integer <=> +value+ is a +Number+;To;;0;[o; ;[I"=OpenSSL::ASN1::BitString <=> +value+ is a +String+;To;;0;[o; ;[I"=OpenSSL::ASN1::OctetString <=> +value+ is a +String+;To;;0;[o; ;[I"?OpenSSL::ASN1::Null <=> +value+ is always +nil+;To;;0;[o; ;[I"=OpenSSL::ASN1::Object <=> +value+ is a +String+;To;;0;[o; ;[I"=OpenSSL::ASN1::Enumerated <=> +value+ is a +Number+;To;;0;[o; ;[I"=OpenSSL::ASN1::UTF8String <=> +value+ is a +String+;To;;0;[o; ;[I"=OpenSSL::ASN1::NumericString <=> +value+ is a +String+;To;;0;[o; ;[I"=OpenSSL::ASN1::PrintableString <=> +value+ is a +String+;To;;0;[o; ;[I"=OpenSSL::ASN1::T61String <=> +value+ is a +String+;To;;0;[o; ;[I"=OpenSSL::ASN1::VideotexString <=> +value+ is a +String+;To;;0;[o; ;[I"=OpenSSL::ASN1::IA5String <=> +value+ is a +String+;To;;0;[o; ;[I";OpenSSL::ASN1::UTCTime <=> +value+ is a +Time+;To;;0;[o; ;[I";OpenSSL::ASN1::GeneralizedTime <=> +value+ is a +Time+;To;;0;[o; ;[I"=OpenSSL::ASN1::GraphicString <=> +value+ is a +String+;To;;0;[o; ;[I"=OpenSSL::ASN1::ISO64String <=> +value+ is a +String+;To;;0;[o; ;[I"=OpenSSL::ASN1::GeneralString <=> +value+ is a +String+;To;;0;[o; ;[I"=OpenSSL::ASN1::UniversalString <=> +value+ is a +String+;To;;0;[o; ;[I"=OpenSSL::ASN1::BMPString <=> +value+ is a +String+;T@S;;i; I"OpenSSL::ASN1::BitString;T@S;;i; I"Additional attributes;To; ;[ I"3+unused_bits+: if the underlying BIT STRING's ;TI"Blength is a multiple of 8 then +unused_bits+ is 0. Otherwise ;TI"J+unused_bits+ indicates the number of bits that are to be ignored in ;TI"2the final octet of the +BitString+'s +value+.;T@S;;i; I"OpenSSL::ASN1::ObjectId;T@o; ;[I"KWhile OpenSSL::ASN1::ObjectId.new will allocate a new ObjectId, it is ;TI"Inot typically allocated this way, but rather that are received from ;TI"parsed ASN1 encodings.;T@S;;i; I"Additional attributes;To;;;;[ o;;0;[o; ;[I"<+sn+: the short name as defined in <openssl/objects.h>.;To;;0;[o; ;[I";+ln+: the long name as defined in <openssl/objects.h>.;To;;0;[o; ;[I"A+oid+: the object identifier as a +String+, e.g. "1.2.3.4.5";To;;0;[o; ;[I""+short_name+: alias for +sn+.;To;;0;[o; ;[I"!+long_name+: alias for +ln+.;T@S;;i; I" Examples;To; ;[I"MWith the Exception of OpenSSL::ASN1::EndOfContent, each Primitive class ;TI";constructor takes at least one parameter, the +value+.;T@S;;i; I"Creating EndOfContent;To:RDoc::Markup::Verbatim;[I"+eoc = OpenSSL::ASN1::EndOfContent.new ;T:@format0S;;i; I"!Creating any other Primitive;To;;[I"Zprim = <class>.new(value) # <class> being one of the sub-classes except EndOfContent ;TI"Bprim_zero_tagged_implicit = <class>.new(value, 0, :IMPLICIT) ;TI"Aprim_zero_tagged_explicit = <class>.new(value, 0, :EXPLICIT);T;0: @fileI"ext/openssl/ossl_asn1.c;T:0@omit_headings_from_table_of_contents_below0;0;0[[ I"tagging;TI"RW;T:publicFI"ext/openssl/ossl_asn1.c;T[ [ [[I" class;T[[;[[I"new;T@Ã[:protected[ [:private[ [I" instance;T[[;[[I"to_der;T@Ã[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@¾I"OpenSSL::ASN1;FcRDoc::NormalModule