Sha256: 0d923f15acf70dcca8dd6d29b7bd5c925250f1bb21a8cd8518088e31f2b1ef63
Contents?: true
Size: 537 Bytes
Versions: 3
Compression:
Stored size: 537 Bytes
Contents
# frozen_string_literal: true module RASN1 module Types # ASN.1 IA5 String # @author Sylvain Daubert class IA5String < OctetString # IA5String id value ID = 22 # Get ASN.1 type # @return [String] def self.type 'IA5String' end private def value_to_der @value.to_s.force_encoding('US-ASCII').force_encoding('BINARY') end def der_to_value(der, ber: false) super @value.to_s.force_encoding('US-ASCII') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rasn1-0.11.0 | lib/rasn1/types/ia5string.rb |
rasn1-0.10.0 | lib/rasn1/types/ia5string.rb |
rasn1-0.9.0 | lib/rasn1/types/ia5string.rb |