Class: RubyAem::Resources::AuthorizableKeystore
- Inherits:
-
Object
- Object
- RubyAem::Resources::AuthorizableKeystore
- Defined in:
- lib/ruby_aem/resources/authorizable_keystore.rb
Overview
AEM class contains API calls related to managing the AEM Authorizable Keystore.
Instance Method Summary collapse
-
#change_password(old_password, new_password) ⇒ Object
RubyAem::Result.
-
#create(password) ⇒ Object
Create AEM Authorizable Keystore.
-
#delete ⇒ Object
Delete AEM Authorizable Keystore.
-
#download(file_path) ⇒ Object
Download the AEM Keystore to a specified directory.
-
#exists ⇒ Object
Check if a keystore for the given authorizable id already exists.
-
#info ⇒ Object
Retrieve AEM Authorizable Keystore info.
-
#initialize(client, intermediate_path, authorizable_id) ⇒ Object
constructor
Initialise an Authorizable Keystore.
Constructor Details
#initialize(client, intermediate_path, authorizable_id) ⇒ Object
Initialise an Authorizable Keystore
30 31 32 33 34 35 36 37 38 |
# File 'lib/ruby_aem/resources/authorizable_keystore.rb', line 30 def initialize(client, intermediate_path, ) @client = client @call_params = { intermediate_path: intermediate_path, authorizable_id: } @call_params[:intermediate_path] = RubyAem::Swagger.path(@call_params[:intermediate_path]) end |
Instance Method Details
#change_password(old_password, new_password) ⇒ Object
Returns RubyAem::Result.
55 56 57 58 59 |
# File 'lib/ruby_aem/resources/authorizable_keystore.rb', line 55 def change_password(old_password, new_password) @call_params[:old_password] = old_password @call_params[:new_password] = new_password @client.call(self.class, __callee__.to_s, @call_params) end |
#create(password) ⇒ Object
Create AEM Authorizable Keystore.
44 45 46 47 |
# File 'lib/ruby_aem/resources/authorizable_keystore.rb', line 44 def create(password) @call_params[:password] = password @client.call(self.class, __callee__.to_s, @call_params) end |
#delete ⇒ Object
Delete AEM Authorizable Keystore
75 76 77 |
# File 'lib/ruby_aem/resources/authorizable_keystore.rb', line 75 def delete @client.call(self.class, __callee__.to_s, @call_params) end |
#download(file_path) ⇒ Object
Download the AEM Keystore to a specified directory.
65 66 67 68 69 70 |
# File 'lib/ruby_aem/resources/authorizable_keystore.rb', line 65 def download( file_path ) @call_params[:file_path] = file_path @client.call(self.class, __callee__.to_s, @call_params) end |
#exists ⇒ Object
Check if a keystore for the given authorizable id already exists.
82 83 84 |
# File 'lib/ruby_aem/resources/authorizable_keystore.rb', line 82 def exists @client.call(self.class, __callee__.to_s, @call_params) end |
#info ⇒ Object
Retrieve AEM Authorizable Keystore info.
89 90 91 |
# File 'lib/ruby_aem/resources/authorizable_keystore.rb', line 89 def info @client.call(self.class, __callee__.to_s, @call_params) end |