Class: Pandoru::SecretStore::Adapters::Windows

Inherits:
Base
  • Object
show all
Defined in:
lib/pandoru/secret_store.rb

Overview

Windows Credential Manager. Left unwired: doing it without a gem means a PowerShell + Win32 CredRead/CredWrite P/Invoke shim, which can’t be verified here. Reports unavailable so Windows falls back to the config file. Implement read/write/delete against ‘cmdkey`/PowerShell to enable.

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Pandoru::SecretStore::Adapters::Base

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


157
# File 'lib/pandoru/secret_store.rb', line 157

def available? = false

#delete(_service) ⇒ Object



160
# File 'lib/pandoru/secret_store.rb', line 160

def delete(_service) = false

#nameObject



156
# File 'lib/pandoru/secret_store.rb', line 156

def name = 'Windows Credential Manager (unsupported)'

#read(_service) ⇒ Object



158
# File 'lib/pandoru/secret_store.rb', line 158

def read(_service) = nil

#write(_service, _secret) ⇒ Object



159
# File 'lib/pandoru/secret_store.rb', line 159

def write(_service, _secret) = false