Package com.codeborne.selenide
Class BasicAuthCredentials
java.lang.Object
com.codeborne.selenide.BasicAuthCredentials
- All Implemented Interfaces:
Credentials
@ParametersAreNonnullByDefault
public class BasicAuthCredentials
extends Object
implements Credentials
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBasicAuthCredentials
(String login, String password) Security warning: If you are using Selenide proxy, use another constructor (with domain parameter).BasicAuthCredentials
(String domain, String login, String password) -
Method Summary
-
Field Details
-
domain
-
login
-
password
-
-
Constructor Details
-
BasicAuthCredentials
Security warning: If you are using Selenide proxy, use another constructor (with domain parameter). This constructor is dangerous: without domain specified, Selenide proxy will send your credentials to ALL domains, including 3rd party services that your AUT or browser might call. If proxy is disabled, it's totally ok to use this constructor. -
BasicAuthCredentials
-
-
Method Details
-
domain
- Specified by:
domain
in interfaceCredentials
-
encode
The resulting string is base64 encoded (YWxhZGRpbjpvcGVuc2VzYW1l).- Specified by:
encode
in interfaceCredentials
- Returns:
- encoded string
-
toString
-