Class: ActiveRecord::Encryption::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/encryption/context.rb

Overview

An encryption context configures the different entities used to perform encryption:

  • A key provider

  • A key generator

  • An encryptor, the facade to encrypt data

  • A cipher, the encryption algorithm

  • A message serializer

Constant Summary collapse

PROPERTIES =
%i[ key_provider key_generator cipher message_serializer encryptor frozen_encryption ]

Instance Method Summary collapse

Constructor Details

#initializeContext

Returns a new instance of Context.



19
20
21
# File 'lib/active_record/encryption/context.rb', line 19

def initialize
  set_defaults
end