Class: ActiveRecord::Encryption::Context
- Defined in:
- activerecord/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
-
#initialize ⇒ Context
constructor
A new instance of Context.
- #key_provider ⇒ Object
Constructor Details
#initialize ⇒ Context
Returns a new instance of Context.
17 18 19 |
# File 'activerecord/lib/active_record/encryption/context.rb', line 17 def initialize set_defaults end |
Instance Method Details
#key_provider ⇒ Object
24 25 26 |
# File 'activerecord/lib/active_record/encryption/context.rb', line 24 def key_provider @key_provider ||= build_default_key_provider end |