public class PasswordAuthentication extends Authentication
Constructor and Description |
---|
PasswordAuthentication(String userName,
String password)
Initializes a new instance of the PasswordAuthentication class using the specified user name and password.
|
Modifier and Type | Method and Description |
---|---|
void |
addHeaders(HeadersImpl headersImplementation)
Adds headers for HTTP operations such as calling the API or uploading a file.
|
String |
getPassword()
Gets the password.
|
String |
getUserName()
Gets the user name.
|
getEnvironment
public PasswordAuthentication(String userName, String password)
userName
- The Bing Ads user's sign-in user name. You may not set
this element to a Microsoft account.password
- The Bing Ads user's sign-in password.public void addHeaders(HeadersImpl headersImplementation)
Authentication
addHeaders
in class Authentication
headersImplementation
- Implementation that should be called to add headers.public String getUserName()
public String getPassword()
Copyright © 2024. All rights reserved.