public class BasicCredentials extends Object implements ICredentials
| Constructor and Description |
|---|
BasicCredentials(String username,
String password)
Creates new basic HTTP credentials.
|
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(org.apache.http.HttpRequest req)
Sets the Authorization header for the given request.
|
String |
getLogonName()
Gets the logon name representing these credentials.
|
void |
initialize(RestClient client) |
void |
logout(RestClient client) |
public void authenticate(org.apache.http.HttpRequest req)
authenticate in interface ICredentialsreq - HTTP request to authenticatepublic String getLogonName()
getLogonName in interface ICredentialspublic void initialize(RestClient client) throws JiraException
initialize in interface ICredentialsJiraExceptionpublic void logout(RestClient client) throws JiraException
logout in interface ICredentialsJiraExceptionCopyright © 2022. All rights reserved.