virgil-sdk 4.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.gitignore +15 -0
- data/Gemfile +4 -0
- data/README.md +134 -0
- data/Rakefile +9 -0
- data/bin/console +16 -0
- data/bin/setup +8 -0
- data/dockefiles/Dockerfile-200 +25 -0
- data/dockefiles/Dockerfile-2110 +36 -0
- data/dockefiles/Dockerfile-220 +26 -0
- data/dockefiles/Dockerfile-226 +25 -0
- data/dockefiles/Dockerfile-233 +25 -0
- data/dockefiles/Dockerfile-240 +26 -0
- data/docker-compose.yml +107 -0
- data/lib/virgil/sdk.rb +10 -0
- data/lib/virgil/sdk/client.rb +47 -0
- data/lib/virgil/sdk/client/card.rb +142 -0
- data/lib/virgil/sdk/client/card_validator.rb +104 -0
- data/lib/virgil/sdk/client/http.rb +45 -0
- data/lib/virgil/sdk/client/http/base_connection.rb +112 -0
- data/lib/virgil/sdk/client/http/cards_service_connection.rb +113 -0
- data/lib/virgil/sdk/client/http/request.rb +63 -0
- data/lib/virgil/sdk/client/request_signer.rb +90 -0
- data/lib/virgil/sdk/client/requests.rb +50 -0
- data/lib/virgil/sdk/client/requests/confirm_identity_request.rb +67 -0
- data/lib/virgil/sdk/client/requests/create_card_request.rb +105 -0
- data/lib/virgil/sdk/client/requests/revoke_card_request.rb +85 -0
- data/lib/virgil/sdk/client/requests/signable_request.rb +142 -0
- data/lib/virgil/sdk/client/requests/verify_identity_request.rb +60 -0
- data/lib/virgil/sdk/client/search_criteria.rb +79 -0
- data/lib/virgil/sdk/client/signatures_base64.rb +25 -0
- data/lib/virgil/sdk/client/virgil_client.rb +425 -0
- data/lib/virgil/sdk/cryptography.rb +42 -0
- data/lib/virgil/sdk/cryptography/hashes.rb +44 -0
- data/lib/virgil/sdk/cryptography/hashes/fingerprint.rb +79 -0
- data/lib/virgil/sdk/cryptography/hashes/hash_algorithm.rb +91 -0
- data/lib/virgil/sdk/cryptography/keys.rb +48 -0
- data/lib/virgil/sdk/cryptography/keys/key_pair.rb +46 -0
- data/lib/virgil/sdk/cryptography/keys/key_pair_type.rb +108 -0
- data/lib/virgil/sdk/cryptography/keys/key_storage.rb +177 -0
- data/lib/virgil/sdk/cryptography/keys/private_key.rb +44 -0
- data/lib/virgil/sdk/cryptography/keys/public_key.rb +44 -0
- data/lib/virgil/sdk/cryptography/keys/storage_item.rb +63 -0
- data/lib/virgil/sdk/cryptography/virgil_crypto.rb +411 -0
- data/lib/virgil/sdk/high_level.rb +21 -0
- data/lib/virgil/sdk/high_level/virgil_api.rb +71 -0
- data/lib/virgil/sdk/high_level/virgil_app_credentials.rb +54 -0
- data/lib/virgil/sdk/high_level/virgil_buffer.rb +161 -0
- data/lib/virgil/sdk/high_level/virgil_card.rb +204 -0
- data/lib/virgil/sdk/high_level/virgil_card_manager.rb +294 -0
- data/lib/virgil/sdk/high_level/virgil_card_verifier_info.rb +49 -0
- data/lib/virgil/sdk/high_level/virgil_context.rb +69 -0
- data/lib/virgil/sdk/high_level/virgil_identity.rb +17 -0
- data/lib/virgil/sdk/high_level/virgil_identity/email_confirmation.rb +60 -0
- data/lib/virgil/sdk/high_level/virgil_identity/validation_token.rb +49 -0
- data/lib/virgil/sdk/high_level/virgil_identity/verification_attempt.rb +69 -0
- data/lib/virgil/sdk/high_level/virgil_identity/verification_options.rb +56 -0
- data/lib/virgil/sdk/high_level/virgil_key.rb +168 -0
- data/lib/virgil/sdk/high_level/virgil_key_manager.rb +97 -0
- data/lib/virgil/sdk/version.rb +5 -0
- data/virgil-sdk.gemspec +31 -0
- metadata +203 -0
data/virgil-sdk.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'virgil/sdk/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "virgil-sdk"
|
8
|
+
spec.version = Virgil::SDK::VERSION
|
9
|
+
spec.authors = ["Dmitriy Dudkin"]
|
10
|
+
spec.email = ["dudkin.dmitriy@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Virgil keys service SDK}
|
13
|
+
spec.description = %q{Virgil keys service SDK}
|
14
|
+
spec.homepage = "https://github.com/VirgilSecurity/virgil-sdk-ruby"
|
15
|
+
spec.licenses = ['MIT']
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.required_ruby_version = '>= 2.2.0'
|
23
|
+
spec.add_runtime_dependency "virgil-crypto", ">= 2.0.6r4"
|
24
|
+
spec.add_runtime_dependency "faraday", "~> 0.10.0"
|
25
|
+
spec.add_runtime_dependency "faraday_middleware", "~> 0.10.0"
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_development_dependency "minitest-reporters", "~> 1.1"
|
29
|
+
spec.add_development_dependency "minitest"
|
30
|
+
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,203 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: virgil-sdk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 4.2.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dmitriy Dudkin
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: virgil-crypto
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.0.6r4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.0.6r4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.10.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.10.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday_middleware
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.10.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.10.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.12'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.12'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest-reporters
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.1'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.1'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: minitest
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Virgil keys service SDK
|
112
|
+
email:
|
113
|
+
- dudkin.dmitriy@gmail.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".DS_Store"
|
119
|
+
- ".gitignore"
|
120
|
+
- Gemfile
|
121
|
+
- README.md
|
122
|
+
- Rakefile
|
123
|
+
- bin/console
|
124
|
+
- bin/setup
|
125
|
+
- dockefiles/Dockerfile-200
|
126
|
+
- dockefiles/Dockerfile-2110
|
127
|
+
- dockefiles/Dockerfile-220
|
128
|
+
- dockefiles/Dockerfile-226
|
129
|
+
- dockefiles/Dockerfile-233
|
130
|
+
- dockefiles/Dockerfile-240
|
131
|
+
- docker-compose.yml
|
132
|
+
- lib/virgil/sdk.rb
|
133
|
+
- lib/virgil/sdk/client.rb
|
134
|
+
- lib/virgil/sdk/client/card.rb
|
135
|
+
- lib/virgil/sdk/client/card_validator.rb
|
136
|
+
- lib/virgil/sdk/client/http.rb
|
137
|
+
- lib/virgil/sdk/client/http/base_connection.rb
|
138
|
+
- lib/virgil/sdk/client/http/cards_service_connection.rb
|
139
|
+
- lib/virgil/sdk/client/http/request.rb
|
140
|
+
- lib/virgil/sdk/client/request_signer.rb
|
141
|
+
- lib/virgil/sdk/client/requests.rb
|
142
|
+
- lib/virgil/sdk/client/requests/confirm_identity_request.rb
|
143
|
+
- lib/virgil/sdk/client/requests/create_card_request.rb
|
144
|
+
- lib/virgil/sdk/client/requests/revoke_card_request.rb
|
145
|
+
- lib/virgil/sdk/client/requests/signable_request.rb
|
146
|
+
- lib/virgil/sdk/client/requests/verify_identity_request.rb
|
147
|
+
- lib/virgil/sdk/client/search_criteria.rb
|
148
|
+
- lib/virgil/sdk/client/signatures_base64.rb
|
149
|
+
- lib/virgil/sdk/client/virgil_client.rb
|
150
|
+
- lib/virgil/sdk/cryptography.rb
|
151
|
+
- lib/virgil/sdk/cryptography/hashes.rb
|
152
|
+
- lib/virgil/sdk/cryptography/hashes/fingerprint.rb
|
153
|
+
- lib/virgil/sdk/cryptography/hashes/hash_algorithm.rb
|
154
|
+
- lib/virgil/sdk/cryptography/keys.rb
|
155
|
+
- lib/virgil/sdk/cryptography/keys/key_pair.rb
|
156
|
+
- lib/virgil/sdk/cryptography/keys/key_pair_type.rb
|
157
|
+
- lib/virgil/sdk/cryptography/keys/key_storage.rb
|
158
|
+
- lib/virgil/sdk/cryptography/keys/private_key.rb
|
159
|
+
- lib/virgil/sdk/cryptography/keys/public_key.rb
|
160
|
+
- lib/virgil/sdk/cryptography/keys/storage_item.rb
|
161
|
+
- lib/virgil/sdk/cryptography/virgil_crypto.rb
|
162
|
+
- lib/virgil/sdk/high_level.rb
|
163
|
+
- lib/virgil/sdk/high_level/virgil_api.rb
|
164
|
+
- lib/virgil/sdk/high_level/virgil_app_credentials.rb
|
165
|
+
- lib/virgil/sdk/high_level/virgil_buffer.rb
|
166
|
+
- lib/virgil/sdk/high_level/virgil_card.rb
|
167
|
+
- lib/virgil/sdk/high_level/virgil_card_manager.rb
|
168
|
+
- lib/virgil/sdk/high_level/virgil_card_verifier_info.rb
|
169
|
+
- lib/virgil/sdk/high_level/virgil_context.rb
|
170
|
+
- lib/virgil/sdk/high_level/virgil_identity.rb
|
171
|
+
- lib/virgil/sdk/high_level/virgil_identity/email_confirmation.rb
|
172
|
+
- lib/virgil/sdk/high_level/virgil_identity/validation_token.rb
|
173
|
+
- lib/virgil/sdk/high_level/virgil_identity/verification_attempt.rb
|
174
|
+
- lib/virgil/sdk/high_level/virgil_identity/verification_options.rb
|
175
|
+
- lib/virgil/sdk/high_level/virgil_key.rb
|
176
|
+
- lib/virgil/sdk/high_level/virgil_key_manager.rb
|
177
|
+
- lib/virgil/sdk/version.rb
|
178
|
+
- virgil-sdk.gemspec
|
179
|
+
homepage: https://github.com/VirgilSecurity/virgil-sdk-ruby
|
180
|
+
licenses:
|
181
|
+
- MIT
|
182
|
+
metadata: {}
|
183
|
+
post_install_message:
|
184
|
+
rdoc_options: []
|
185
|
+
require_paths:
|
186
|
+
- lib
|
187
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
188
|
+
requirements:
|
189
|
+
- - ">="
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: 2.2.0
|
192
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '0'
|
197
|
+
requirements: []
|
198
|
+
rubyforge_project:
|
199
|
+
rubygems_version: 2.6.10
|
200
|
+
signing_key:
|
201
|
+
specification_version: 4
|
202
|
+
summary: Virgil keys service SDK
|
203
|
+
test_files: []
|