Class: Y2Network::Widgets::ServerCAPath
- Inherits:
-
PathWidget
- Object
- CWM::CustomWidget
- PathWidget
- Y2Network::Widgets::ServerCAPath
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
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_label ⇒ Object
42
43
44
|
# File 'src/lib/y2network/widgets/server_ca_path.rb', line 42
def browse_label
_("Choose a Certificate")
end
|
#help ⇒ Object
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
|
#init ⇒ Object
46
47
48
|
# File 'src/lib/y2network/widgets/server_ca_path.rb', line 46
def init
self.value = @builder.ca_cert
end
|
#label ⇒ Object
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
|
#store ⇒ Object
50
51
52
|
# File 'src/lib/y2network/widgets/server_ca_path.rb', line 50
def store
@builder.ca_cert = value
end
|