public class TokenCredentials extends Object implements ICredentials
| Constructor and Description |
|---|
TokenCredentials(String jsessionId) |
TokenCredentials(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.
|
String |
getToken() |
void |
initialize(RestClient client) |
void |
logout(RestClient client) |
public TokenCredentials(String username, String password)
username - password - public TokenCredentials(String jsessionId)
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 ICredentialsJiraExceptionpublic String getToken()
Copyright © 2022. All rights reserved.