Class: Wx::WebCredentials

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/doc/gen/credential_entry_dialog.rb

Overview

Note:

This class is untracked and should not be derived from nor instances extended!

Simple class containing the username and password to use for authenticating.

Category: Networking

See Also:

  • WebAuthChallenge

Requires:

  • USE_CREDENTIALDLG

Instance Method Summary collapse

Constructor Details

#initialize(user = (''), password = (Wx::SecretValue.new())) ⇒ Wx::WebCredentials

Create the new credentials object.

Note that the password is a SecretValue object, to construct it from a string you need to explicitly use SecretValue ctor.

Parameters:

  • user (String) (defaults to: (''))
  • password (Wx::SecretValue) (defaults to: (Wx::SecretValue.new()))


101
# File 'lib/wx/doc/gen/credential_entry_dialog.rb', line 101

def initialize(user=(''), password=(Wx::SecretValue.new())) end

Instance Method Details

#get_passwordWx::SecretValue Also known as: password

Return the password.

Returns:

See Also:

  • SecretString


113
# File 'lib/wx/doc/gen/credential_entry_dialog.rb', line 113

def get_password; end

#get_userWx::String Also known as: user

Return the user.

Returns:

  • (Wx::String)


105
# File 'lib/wx/doc/gen/credential_entry_dialog.rb', line 105

def get_user; end