Module: Teak::AttrEncrypted
- Defined in:
- lib/teak/attr_encrypted.rb,
lib/teak/attr_encrypted/dsl.rb,
lib/teak/attr_encrypted/version.rb,
lib/teak/attr_encrypted/encryptor.rb,
lib/teak/attr_encrypted/kek_provider/aes.rb,
lib/teak/attr_encrypted/kek_provider/base.rb,
lib/teak/attr_encrypted/kek_provider/aws_kms.rb
Defined Under Namespace
Modules: DSL, KEKProvider
Classes: Encryptor, Error
Constant Summary
collapse
- VERSION =
"0.1.1"
Class Method Summary
collapse
Class Method Details
.default_kek_provider ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/teak/attr_encrypted.rb', line 12
def self.default_kek_provider
if @default_kek_provider
@default_kek_provider
else
raise Error.new('No key encryption key provider provided!')
end
end
|
.default_kek_provider=(provider) ⇒ Object
20
21
22
|
# File 'lib/teak/attr_encrypted.rb', line 20
def self.default_kek_provider=(provider)
@default_kek_provider = provider
end
|
.included(base) ⇒ Object
8
9
10
|
# File 'lib/teak/attr_encrypted.rb', line 8
def self.included(base)
base.include DSL
end
|