class SafeDb::Token

The token use case prints out an encrypted shell token tied to the workstation and shell environment. See the root README.md on how to export it and create a simple command alias for it in the ~/.bash_aliases script which is executed when the shell starts.

Public Instance Methods

execute() click to toggle source
# File lib/controller/access/token.rb, line 12
def execute

  print KeyDerivation.generate_shell_key_and_token()

end
pre_validation() click to toggle source

Perform pre-conditional validations in preparation to executing the main flow of events for this use case. This method may throw the below exceptions.

@raise [SafeDirNotConfigured] if the safe's url has not been configured @raise [EmailAddrNotConfigured] if the email address has not been configured @raise [StoreUrlNotConfigured] if the crypt store url is not configured

# File lib/controller/access/token.rb, line 25
def pre_validation


end