class TTTLS13::Message::ChangeCipherSpec
Public Class Methods
deserialize(binary)
click to toggle source
@param binary [String]
@raise [TTTLS13::Error::ErrorAlerts]
@return [TTTLS13::Message::ChangeCipherSpec]
# File lib/tttls1.3/message/change_cipher_spec.rb, line 17 def self.deserialize(binary) raise Error::ErrorAlerts, :internal_error if binary.nil? raise Error::ErrorAlerts, :decode_error unless binary.length == 1 raise Error::ErrorAlerts, :unexpected_message unless binary[0] == "\x01" ChangeCipherSpec.new end
Public Instance Methods
serialize()
click to toggle source
@return [String]
# File lib/tttls1.3/message/change_cipher_spec.rb, line 8 def serialize "\x01" end