class LetsCert::AccountKey

Account key IO plugin @author Sylvain Daubert

Public Instance Methods

load_from_content(content) click to toggle source

@return [Hash]

# File lib/letscert/io_plugins/account_key.rb, line 36
def load_from_content(content)
  { account_key: load_jwk(content) }
end
persisted() click to toggle source

@return [Hash] always get true for :account_key key

# File lib/letscert/io_plugins/account_key.rb, line 31
def persisted
  { account_key: true }
end
save(data) click to toggle source

Save account key. @param [Hash] data @return [void]

# File lib/letscert/io_plugins/account_key.rb, line 43
def save(data)
  save_to_file(dump_jwk(data[:account_key]))
end