class RASN1::Types::Utf8String
ASN.1 UTF8 String @author Sylvain Daubert
Constants
- ID
Utf8String
id value
Public Class Methods
type()
click to toggle source
Get ASN.1 type @return [String]
# File lib/rasn1/types/utf8_string.rb, line 13 def self.type 'UTF8String' end
Private Instance Methods
der_to_value(der, ber: false)
click to toggle source
Calls superclass method
# File lib/rasn1/types/utf8_string.rb, line 23 def der_to_value(der, ber: false) super @value.force_encoding('UTF-8') end
value_to_der()
click to toggle source
# File lib/rasn1/types/utf8_string.rb, line 19 def value_to_der @value.to_s.force_encoding('UTF-8').force_encoding('BINARY') end