class Chef::Key

Class for interacting with a chef key object. Can be used to create new keys, save to server, load keys from server, list keys, delete keys, etc.

@author Tyler Cloke

@attr [String] actor the name of the client or user that this key is for @attr [String] name the name of the key @attr [String] public_key the RSA string of this key @attr [String] private_key the RSA string of the private key if returned via a POST or PUT @attr [String] expiration_date the ISO formatted string YYYY-MM-DDTHH:MM:SSZ, i.e. 2020-12-24T21:00:00Z @attr [String] rest Chef::ServerAPI object, initialized and cached via chef_rest method @attr [string] api_base either “users” or “clients”, initialized and cached via api_base method

@attr_reader [String] actor_field_name must be either ‘client’ or ‘user’