Module: Evervault
- Defined in:
- lib/evervault.rb,
lib/evervault/client.rb,
lib/evervault/config.rb,
lib/evervault/version.rb,
lib/evervault/http/request.rb,
lib/evervault/crypto/client.rb,
lib/evervault/errors/errors.rb,
lib/evervault/errors/error_map.rb,
lib/evervault/crypto/curves/base.rb,
lib/evervault/crypto/curves/p256.rb,
lib/evervault/http/request_handler.rb,
lib/evervault/crypto/curves/koblitz.rb,
lib/evervault/http/request_intercept.rb,
lib/evervault/utils/validation_utils.rb,
lib/evervault/errors/legacy_error_map.rb,
lib/evervault/threading/repeated_timer.rb,
lib/evervault/http/relay_outbound_config.rb
Defined Under Namespace
Modules: Crypto, Errors, Http, Threading, Utils
Classes: Client, Config
Constant Summary
collapse
- VERSION =
"3.0.1"
- EV_VERSION =
{ 'prime256v1' => 'QkTC', 'secp256k1' => 'S0lS' }.freeze
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
12
13
14
|
# File 'lib/evervault.rb', line 12
def api_key
@api_key
end
|
.app_id ⇒ Object
Returns the value of attribute app_id.
12
13
14
|
# File 'lib/evervault.rb', line 12
def app_id
@app_id
end
|
Class Method Details
39
40
41
|
# File 'lib/evervault.rb', line 39
def configure(...)
client.configure(...)
end
|
.create_client_side_decrypt_token(data, expiry = nil) ⇒ Object
34
35
36
37
|
# File 'lib/evervault.rb', line 34
def create_client_side_decrypt_token(data, expiry = nil)
expiry = (expiry.to_f * 1000).to_i unless expiry.nil?
client.create_token('api:decrypt', data, expiry)
end
|
.create_run_token ⇒ Object
30
31
32
|
# File 'lib/evervault.rb', line 30
def create_run_token(...)
client.create_run_token(...)
end
|
.decrypt ⇒ Object
18
19
20
|
# File 'lib/evervault.rb', line 18
def decrypt(...)
client.decrypt(...)
end
|
.enable_outbound_relay ⇒ Object
26
27
28
|
# File 'lib/evervault.rb', line 26
def enable_outbound_relay(...)
client.enable_outbound_relay(...)
end
|
.encrypt ⇒ Object
14
15
16
|
# File 'lib/evervault.rb', line 14
def encrypt(...)
client.encrypt(...)
end
|
.run ⇒ Object
22
23
24
|
# File 'lib/evervault.rb', line 22
def run(...)
client.run(...)
end
|