ruby_aem 3.6.0 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b87692d45379fc2a9e6c9860148b34a413352431
4
- data.tar.gz: 73afdd6346a56fe3f3ae34604e4da80dc4957634
3
+ metadata.gz: 7d3edd03b7ed33a824fb199d38cd2826ac5d4286
4
+ data.tar.gz: ad09c1cb27debd298c45d0d31e757840b41bb3ef
5
5
  SHA512:
6
- metadata.gz: d50ae162ac4d8af6fe5fe24bd40f9f4a8eb7fc53d63715faa6254352f050b80087756072dcaae327ef51ecee0a6ec93268add0d386c45f5321e473c439e175a7
7
- data.tar.gz: 235eee739d3208da3d0d96131813ad9bd7f99a73ba373fe6d733d4e6549a8280565cbb76b5995161edabbd71156837b747fe2ed743c6c79dc5e22253bc4f2cc0
6
+ metadata.gz: a3ebda8cc4e9289ccbb90e95cd5e557e93d257a881f58f8d5f6518cf062fe8df8569780050a34396bd235abd7e9e9b20c3f35a61c44c96a942fdd2abc52981f8
7
+ data.tar.gz: 978832d663c6b9dd1d070780aa65bce960894e9a810f82fd3775473acb489b074a1d80ceefd52bca5e460577411ca016f44ad64b03ddabcbe8ac3d5c3b9b9af9
@@ -1 +1 @@
1
- version: 3.6.0
1
+ version: 3.7.0
@@ -1422,3 +1422,44 @@ user:
1422
1422
  200:
1423
1423
  handler: html_change_password
1424
1424
  message: 'User %{user}''s password has been changed'
1425
+ ssl:
1426
+ actions:
1427
+ enable:
1428
+ api: granite
1429
+ operation: sslSetup
1430
+ params:
1431
+ required:
1432
+ keystore_password: '%{keystore_password}'
1433
+ keystore_passwordConfirm: '%{keystore_passwordConfirm}'
1434
+ truststore_password: '%{truststore_password}'
1435
+ truststore_passwordConfirm: '%{truststore_passwordConfirm}'
1436
+ https_hostname: '%{https_hostname}'
1437
+ https_port: '%{https_port}'
1438
+ optional:
1439
+ privatekey_file: __FILE_PRIVATE_KEY__
1440
+ certificate_file: __FILE_CERTIFICATE__
1441
+ responses:
1442
+ 200:
1443
+ handler: simple
1444
+ message: 'HTTPS has been configured on port %{https_port}'
1445
+ get:
1446
+ api: configmgr
1447
+ operation: comAdobeGraniteJettySslInternalGraniteSslConnectorFactory
1448
+ params:
1449
+ optional:
1450
+ post: true
1451
+ responses:
1452
+ 200:
1453
+ handler: simple
1454
+ message: 'HTTPS Configuration found'
1455
+ disable:
1456
+ api: configmgr
1457
+ operation: comAdobeGraniteJettySslInternalGraniteSslConnectorFactory
1458
+ params:
1459
+ optional:
1460
+ apply: true
1461
+ delete: true
1462
+ responses:
1463
+ 200:
1464
+ handler: simple
1465
+ message: 'HTTPS has been disabled'
@@ -29,6 +29,7 @@ require 'ruby_aem/resources/replication_agent'
29
29
  require 'ruby_aem/resources/outbox_replication_agent'
30
30
  require 'ruby_aem/resources/reverse_replication_agent'
31
31
  require 'ruby_aem/resources/saml'
32
+ require 'ruby_aem/resources/ssl'
32
33
  require 'ruby_aem/resources/repository'
33
34
  require 'ruby_aem/resources/truststore'
34
35
  require 'ruby_aem/resources/user'
@@ -87,7 +88,8 @@ module RubyAem
87
88
  custom: SwaggerAemClient::CustomApi.new,
88
89
  cq: SwaggerAemClient::CqApi.new,
89
90
  crx: SwaggerAemClient::CrxApi.new,
90
- sling: SwaggerAemClient::SlingApi.new
91
+ sling: SwaggerAemClient::SlingApi.new,
92
+ granite: SwaggerAemClient::GraniteApi.new
91
93
  }
92
94
 
93
95
  spec = YAML.load_file(File.expand_path('../../conf/spec.yaml', __FILE__))
@@ -254,6 +256,13 @@ module RubyAem
254
256
  RubyAem::Resources::Saml.new(@client)
255
257
  end
256
258
 
259
+ # Create a SSL instance.
260
+ #
261
+ # @return new RubyAem::Resources::Saml instance
262
+ def ssl
263
+ RubyAem::Resources::Ssl.new(@client)
264
+ end
265
+
257
266
  # Create a Truststore instance.
258
267
  #
259
268
  # @return new RubyAem::Resources::Truststore instance
@@ -0,0 +1,76 @@
1
+ # Copyright 2016-2018 Shine Solutions
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'ruby_aem/error'
16
+
17
+ module RubyAem
18
+ module Resources
19
+ # AEM class contains API calls related to managing SSL via Granite.
20
+ class Ssl
21
+ # Initialise Ssl resource.
22
+ #
23
+ # @param client RubyAem::Client
24
+ # @return new RubyAem::Resources::Ssl instance
25
+ def initialize(client)
26
+ @client = client
27
+ @call_params = {
28
+ }
29
+ end
30
+
31
+ # Disable SSL
32
+ #
33
+ # @return RubyAem::Result
34
+ def disable
35
+ @client.call(self.class, __callee__.to_s, @call_params)
36
+ end
37
+
38
+ # Enable SSL
39
+ #
40
+ # @param opts hash of the following values:
41
+ # - keystore_password: Authorizable Keystore password for system-user ssl-service. keystore will be created if it doesn't exist.
42
+ # - truststore_password: AEM Global Truststore password. Truststore will be created if it doesn't exist.
43
+ # - https_hostname: Hostname for enabling HTTPS listener matching the certificate's common name.
44
+ # - https_port: Port to listen on for HTTPS requests.
45
+ # - certificate_file_path: Path to the HTTPS public certificate file.
46
+ # - privatekey_file_path: Path to the HTTPS Private Key file.
47
+ # @return RubyAem::Result
48
+ def enable(opts = {
49
+ keystore_password: nil,
50
+ truststore_password: nil,
51
+ https_hostname: nil,
52
+ https_port: nil,
53
+ certificate_file_path: nil,
54
+ privatekey_file_path: nil
55
+ })
56
+ @call_params[:keystore_password] = opts[:keystore_password]
57
+ @call_params[:keystore_passwordConfirm] = opts[:keystore_password]
58
+ @call_params[:truststore_password] = opts[:truststore_password]
59
+ @call_params[:truststore_passwordConfirm] = opts[:truststore_password]
60
+ @call_params[:https_hostname] = opts[:https_hostname]
61
+ @call_params[:https_port] = opts[:https_port]
62
+ @call_params[:file_path_certificate] = opts[:certificate_file_path]
63
+ @call_params[:file_path_private_key] = opts[:privatekey_file_path]
64
+
65
+ @client.call(self.class, __callee__.to_s, @call_params)
66
+ end
67
+
68
+ # Get SSL Granite configuration
69
+ #
70
+ # @return RubyAem::Result
71
+ def get
72
+ @client.call(self.class, __callee__.to_s, @call_params)
73
+ end
74
+ end
75
+ end
76
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_aem
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shine Solutions
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-04-18 00:00:00.000000000 Z
12
+ date: 2020-05-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: retries
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 3.2.0
34
+ version: 3.3.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 3.2.0
41
+ version: 3.3.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: swagger_aem_osgi
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -117,6 +117,7 @@ files:
117
117
  - lib/ruby_aem/resources/repository.rb
118
118
  - lib/ruby_aem/resources/reverse_replication_agent.rb
119
119
  - lib/ruby_aem/resources/saml.rb
120
+ - lib/ruby_aem/resources/ssl.rb
120
121
  - lib/ruby_aem/resources/truststore.rb
121
122
  - lib/ruby_aem/resources/user.rb
122
123
  - lib/ruby_aem/response.rb