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

Returns a new instance of 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


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

def browse_label
  _("Choose a Certificate")
end

#helpObject


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

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


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

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


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

def label
  _("&Server Certificate")
end

#storeObject


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

def store
  @builder.ca_cert = value
end