public class SharedCredentialsControl extends BackdoorControl<SharedCredentialsControl>
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
Constructor and Description |
---|
SharedCredentialsControl(BambooEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
RestSharedCredential |
createPasswordSharedCredential(RestSharedCredential sharedCredential) |
RestSharedCredential |
createPasswordSharedCredential(String username,
String password) |
protected com.sun.jersey.api.client.WebResource |
createResource()
Creates the resource that corresponds to the root of the TestKit REST API, using the values returned by
BackdoorControl.getRestModulePath() . |
RestSharedCredential |
createSshSharedCredential(RestSharedCredential sharedCredential) |
RestSharedCredential |
createSshSharedCredential(String privateKey,
String passphrase) |
void |
deletePasswordSharedCredential(long id) |
void |
deleteSshSharedCredential(long id) |
List<RestSharedCredential> |
getAllPasswordSharedCredentials() |
List<RestSharedCredential> |
getAllSshSharedCredentials() |
void |
tearDown()
Cleanup resources
|
client, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot
public SharedCredentialsControl(@NotNull BambooEnvironmentData environmentData)
public void tearDown()
BackdoorControl
tearDown
in class BackdoorControl<SharedCredentialsControl>
public List<RestSharedCredential> getAllSshSharedCredentials()
public List<RestSharedCredential> getAllPasswordSharedCredentials()
public RestSharedCredential createSshSharedCredential(String privateKey, String passphrase)
public RestSharedCredential createSshSharedCredential(RestSharedCredential sharedCredential)
public RestSharedCredential createPasswordSharedCredential(String username, String password)
public RestSharedCredential createPasswordSharedCredential(RestSharedCredential sharedCredential)
public void deleteSshSharedCredential(long id)
public void deletePasswordSharedCredential(long id)
protected com.sun.jersey.api.client.WebResource createResource()
BackdoorControl
BackdoorControl.getRestModulePath()
. Note that the created WebResource
has the following properties: Content-Type: application/json
by
default (override with WebResource.type(javax.ws.rs.core.MediaType)
)BackdoorControl.createResourceForPath(java.lang.String)
createResource
in class BackdoorControl<SharedCredentialsControl>
BackdoorControl.createResource()
,
BackdoorControl.getRestModulePath()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.