Sha256: 88e232f7ee25c008ab7580a04c762ca7b0bc0bdf5c573c0ad2298c79bfea70f5
Contents?: true
Size: 532 Bytes
Versions: 1
Compression:
Stored size: 532 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.force_encoding('US-ASCII') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rasn1-0.8.0 | lib/rasn1/types/ia5string.rb |