Class: Y2Network::Widgets::ClientCertPath

Inherits:
PathWidget
  • Object
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

#initialize(builder) ⇒ ClientCertPath

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_labelObject


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

def browse_label
  _("Choose a Certificate")
end

#helpObject


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

#initObject


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

def init
  self.value = @builder.client_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/client_cert_path.rb', line 31

def label
  _("&Client Certificate")
end

#storeObject


53
54
55
# File 'src/lib/y2network/widgets/client_cert_path.rb', line 53

def store
  @builder.client_cert = value
end