Class: EncryptedPassword

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

ENCRYPTIONKEYVERSION =
1
CIPHERTEXT =
2
FIELDS =
{
  ENCRYPTIONKEYVERSION => {:type => ::Thrift::Types::I32, :name => 'encryptionKeyVersion', :enum_class => ::G_a_b_z0_a_b_g},
  CIPHERTEXT => {:type => ::Thrift::Types::STRING, :name => 'cipherText'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



6625
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6625

def struct_fields; FIELDS; end

#validateObject



6627
6628
6629
6630
6631
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6627

def validate
  unless @encryptionKeyVersion.nil? || ::G_a_b_z0_a_b_g::VALID_VALUES.include?(@encryptionKeyVersion)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field encryptionKeyVersion!')
  end
end