Class: LetsCert::AccountKey
- Includes:
- FileIOPluginMixin, JWKIOPluginMixin
- Defined in:
- lib/letscert/io_plugin.rb
Overview
Account key IO plugin
Constant Summary
Constants inherited from IOPlugin
Instance Attribute Summary
Attributes inherited from IOPlugin
Instance Method Summary collapse
Methods included from JWKIOPluginMixin
Methods included from FileIOPluginMixin
Methods inherited from IOPlugin
empty_data, #initialize, #load, #logger, logger=, register, registered
Constructor Details
This class inherits a constructor from LetsCert::IOPlugin
Instance Method Details
#load_from_content(content) ⇒ Object
177 178 179 |
# File 'lib/letscert/io_plugin.rb', line 177 def load_from_content(content) { account_key: load_jwk(content) } end |
#persisted ⇒ Object
173 174 175 |
# File 'lib/letscert/io_plugin.rb', line 173 def persisted { account_key: true } end |
#save(data) ⇒ Object
181 182 183 |
# File 'lib/letscert/io_plugin.rb', line 181 def save(data) save_to_file(dump_jwk(data[:account_key])) end |