Module: ActiveCipherStorage

Defined in:
lib/active_cipher_storage.rb,
lib/active_cipher_storage/cipher.rb,
lib/active_cipher_storage/engine.rb,
lib/active_cipher_storage/errors.rb,
lib/active_cipher_storage/format.rb,
lib/active_cipher_storage/version.rb,
lib/active_cipher_storage/key_utils.rb,
lib/active_cipher_storage/key_rotation.rb,
lib/active_cipher_storage/blob_metadata.rb,
lib/active_cipher_storage/configuration.rb,
lib/active_cipher_storage/stream_cipher.rb,
lib/active_cipher_storage/providers/base.rb,
lib/active_cipher_storage/multipart_upload.rb,
lib/active_cipher_storage/adapters/s3_adapter.rb,
lib/active_cipher_storage/providers/env_provider.rb,
lib/active_cipher_storage/providers/aws_kms_provider.rb,
lib/active_cipher_storage/adapters/active_storage_service.rb

Defined Under Namespace

Modules: Adapters, BlobMetadata, Errors, Format, KeyRotation, KeyUtils, Providers Classes: Cipher, Configuration, EncryptedMultipartUpload, Engine, StreamCipher

Constant Summary collapse

Error =

Convenience aliases at the top-level namespace.

Errors::Error
InvalidFormat =
Errors::InvalidFormat
DecryptionError =
Errors::DecryptionError
ProviderError =
Errors::ProviderError
KeyManagementError =
Errors::KeyManagementError
UnsupportedOperation =
Errors::UnsupportedOperation
VERSION =
"1.0.3"

Class Method Summary collapse

Class Method Details

.configurationObject



31
32
33
# File 'lib/active_cipher_storage.rb', line 31

def configuration
  @configuration
end

.configureObject



35
36
37
# File 'lib/active_cipher_storage.rb', line 35

def configure
  @config_mutex.synchronize { yield @configuration }
end

.reset_configuration!Object



39
40
41
# File 'lib/active_cipher_storage.rb', line 39

def reset_configuration!
  @config_mutex.synchronize { @configuration = Configuration.new }
end