public class SharedCredentialsControl extends BackdoorControl<SharedCredentialsControl>
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
Constructor and Description |
---|
SharedCredentialsControl(@NotNull BambooEnvironmentData environmentData) |
client, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot
public SharedCredentialsControl(@NotNull @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(String privateKey, String passphrase, String projectKey)
public RestSharedCredential createSshSharedCredential(RestSharedCredential sharedCredential)
public RestSharedCredential createPasswordSharedCredential(String username, String password)
public RestSharedCredential createPasswordSharedCredential(String username, String password, String projectKey)
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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.