TomDesktopSecretStore constructor

TomDesktopSecretStore({
  1. required String service,
  2. Duration timeout = const Duration(seconds: 10),
  3. String? operatingSystem,
  4. Map<String, String>? environment,
  5. String securityExecutable = '/usr/bin/security',
  6. String secretToolExecutable = 'secret-tool',
})

The store of service (the keychain's service name, e.g. tom-secrets-manager). operatingSystem and environment default to this process's.

Implementation

TomDesktopSecretStore({
  required this.service,
  this.timeout = const Duration(seconds: 10),
  String? operatingSystem,
  Map<String, String>? environment,
  String securityExecutable = '/usr/bin/security',
  String secretToolExecutable = 'secret-tool',
}) : _os = operatingSystem ?? Platform.operatingSystem,
     _env = environment ?? Platform.environment,
     _security = securityExecutable,
     _secretTool = secretToolExecutable {
  _checkName(service, 'service');
}