Class: Y2Network::Widgets::ClientCertPath
- Inherits:
-
PathWidget
- Object
- CWM::CustomWidget
- PathWidget
- Y2Network::Widgets::ClientCertPath
show all
- Defined in:
- src/lib/y2network/widgets/client_cert_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 ClientCertPath.
25
26
27
28
29
|
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 25
def initialize(builder)
super()
textdomain "network"
@builder = builder
end
|
Instance Method Details
#browse_label ⇒ Object
45
46
47
|
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 45
def browse_label
_("Choose a Certificate")
end
|
#help ⇒ Object
35
36
37
38
39
40
41
42
43
|
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 35
def help
_(
"<p>TLS uses a <b>Client Certificate</b> instead of a username and\n" \
"password combination for authentication. It uses a public and private key pair\n" \
"to encrypt negotiation communication, therefore you will additionally need\n" \
"a <b>Client Key</b> file that contains your private key and\n" \
"the appropriate <b>Client Key Password</b> for that file.</p>\n"
)
end
|
#init ⇒ Object
49
50
51
|
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 49
def init
self.value = @builder.client_cert
end
|
#label ⇒ Object
31
32
33
|
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 31
def label
_("&Client Certificate")
end
|
#store ⇒ Object
53
54
55
|
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 53
def store
@builder.client_cert = value
end
|