Class: Binenc::Java::ASN1Integer
- Inherits:
-
Object
- Object
- Binenc::Java::ASN1Integer
- Includes:
- ASN1Object
- Defined in:
- lib/binenc/asn1_engine/object/integer.rb
Instance Attribute Summary
Attributes included from ASN1Object
Instance Method Summary collapse
Methods included from ASN1Object
decode, #initialize, #is_equal?
Methods included from DataConversion
#from_b64, #from_hex, included, #to_b64, #to_b64_mime, #to_bin, #to_hex, #to_java_bytes, #to_str
Instance Method Details
#encoded(binary = true) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/binenc/asn1_engine/object/integer.rb', line 9 def encoded(binary = true) obj = org.bouncycastle.asn1.DERInteger.new(@value) if binary obj.encoded else obj end end |