D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
OpenSSL
/
ASN1
/
Primitive
/
Filename :
cdesc-Primitive.ri
back
Copy
U:RDoc::NormalClass[iI"Primitive:ETI"OpenSSL::ASN1::Primitive;TI"OpenSSL::ASN1::ASN1Data;To:RDoc::Markup::Document:@parts[o;;[ : @fileI"$ext/openssl/lib/openssl/asn1.rb;T:0@omit_headings_from_table_of_contents_below0o;;[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 encoded with indefinite length form, thus ;TI"Oit is not possible to set the _indefinite_length_ attribute for Primitive ;TI"and its 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"DOpenSSL::ASN1::Boolean <=> _value_ is +true+ or +false+;To;;0;[o;;[I"AOpenSSL::ASN1::Integer <=> _value_ is an OpenSSL::BN;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"AOpenSSL::ASN1::Enumerated <=> _value_ is an OpenSSL::BN;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"9OpenSSL::ASN1::UTCTime <=> _value_ is a Time;To;;0;[o;;[I"9OpenSSL::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"0the final octet of the BitString's _value_.;T@S; ;i;I"OpenSSL::ASN1::ObjectId;T@o;;[I"KNOTE: While OpenSSL::ASN1::ObjectId.new will allocate a new ObjectId, ;TI"Oit is not 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"?_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; I"ext/openssl/ossl_asn1.c;T; 0; 0; 0[ [ [[I"TaggedASN1Data;To;;[ ; @; 0I"$ext/openssl/lib/openssl/asn1.rb;T[[I" class;T[[:public[ [:protected[ [:private[ [I" instance;T[[;[[I"to_der;TI"ext/openssl/ossl_asn1.c;T[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[@@�I"OpenSSL::ASN1;TcRDoc::NormalModule