Class: Capsium::Package::BasicAuthConfig

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/capsium/package/authentication_config.rb,
sig/capsium/package/authentication_config.rbs

Overview

The "basicAuth" object of authentication.json (ARCHITECTURE.md section 4b): Apache-style Basic authentication verified against an htpasswd file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject



11
# File 'sig/capsium/package/authentication_config.rbs', line 11

def initialize: (?enabled: bool enabled, ?passwd_file: String? passwd_file,

Instance Attribute Details

#enabledBoolean

Returns the value of attribute enabled.

Returns:

  • (Boolean)


7
8
9
# File 'sig/capsium/package/authentication_config.rbs', line 7

def enabled
  @enabled
end

#passwd_fileString?

Returns the value of attribute passwd_file.

Returns:

  • (String, nil)


8
9
10
# File 'sig/capsium/package/authentication_config.rbs', line 8

def passwd_file
  @passwd_file
end

#realmString

Returns the value of attribute realm.

Returns:

  • (String)


9
10
11
# File 'sig/capsium/package/authentication_config.rbs', line 9

def realm
  @realm
end

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/capsium/package/authentication_config.rb', line 24

def enabled?
  !!enabled
end

#to_hashHash[String, untyped]

Returns:

  • (Hash[String, untyped])


17
# File 'sig/capsium/package/authentication_config.rbs', line 17

def to_hash: () -> Hash[String, untyped]

#to_jsonString

Parameters:

  • args (Object)

Returns:

  • (String)


16
# File 'sig/capsium/package/authentication_config.rbs', line 16

def to_json: (*untyped args) -> String