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
|
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 25
def initialize(builder)
textdomain "network"
@builder = builder
end
|
Instance Method Details
#browse_label ⇒ Object
44
45
46
|
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 44
def browse_label
_("Choose a Certificate")
end
|
#help ⇒ Object
34
35
36
37
38
39
40
41
42
|
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 34
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
48
49
50
|
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 48
def init
self.value = @builder.client_cert
end
|
#label ⇒ Object
30
31
32
|
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 30
def label
_("&Client Certificate")
end
|
#store ⇒ Object
52
53
54
|
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 52
def store
@builder.client_cert = value
end
|