Class: Y2Network::Widgets::ServerCAPath

Inherits:
PathWidget
  • Object
show all
Defined in:
src/lib/y2network/widgets/server_ca_path.rb

Instance Method Summary collapse

Methods inherited from PathWidget

#ask_method, #button_id, #button_label, #contents, #handle, #text_id, #value, #value=

Constructor Details

#initialize(builder) ⇒ ServerCAPath


25
26
27
28
# File 'src/lib/y2network/widgets/server_ca_path.rb', line 25

def initialize(builder)
  textdomain "network"
  @builder = builder
end

Instance Method Details

#browse_labelObject


41
42
43
# File 'src/lib/y2network/widgets/server_ca_path.rb', line 41

def browse_label
  _("Choose a Certificate")
end

#helpObject


35
36
37
38
39
# File 'src/lib/y2network/widgets/server_ca_path.rb', line 35

def help
  "<p>To increase security, it is recommended to configure\n" \
    "a <b>Server Certificate</b>. It is used\n" \
    "to validate the server's authenticity.</p>\n"
end

#initObject


45
46
47
# File 'src/lib/y2network/widgets/server_ca_path.rb', line 45

def init
  self.value = @builder.ca_cert
end

#labelObject

FIXME: label and help text is wrong, here it is certificate of CA that is used to sign server certificate


31
32
33
# File 'src/lib/y2network/widgets/server_ca_path.rb', line 31

def label
  _("&Server Certificate")
end

#storeObject


49
50
51
# File 'src/lib/y2network/widgets/server_ca_path.rb', line 49

def store
  @builder.ca_cert = value
end