Class TrustedKeyResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.ssh.TrustedKeyResource
@Path("security/trustedKey")
@Produces("application/json")
@Consumes("application/json")
public class TrustedKeyResource
extends Object
Manage trusted keys.
- Since:
- 5.10
-
Constructor Summary
ConstructorDescriptionTrustedKeyResource
(TrustedKeyConversionFunction trustedKeyConversionFunction, TrustedKeyService trustedKeyService, com.atlassian.sal.api.message.I18nResolver i18nResolver, AdministrationConfigurationAccessor administrationConfigurationAccessor, RestHelperWrapper restHelperWrapper) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
create
(@Nullable RestTrustedKey input, ExpansionParam expansion, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.Response
delete
(long id) @NotNull List<RestTrustedKey>
findAll
(ExpansionParam expansion, javax.ws.rs.core.UriInfo uriInfo)
-
Constructor Details
-
TrustedKeyResource
@Inject public TrustedKeyResource(TrustedKeyConversionFunction trustedKeyConversionFunction, TrustedKeyService trustedKeyService, com.atlassian.sal.api.message.I18nResolver i18nResolver, AdministrationConfigurationAccessor administrationConfigurationAccessor, RestHelperWrapper restHelperWrapper)
-
-
Method Details
-
findAll
@NotNull @GET public @NotNull List<RestTrustedKey> findAll(@BeanParam ExpansionParam expansion, @Context javax.ws.rs.core.UriInfo uriInfo) -
create
@POST public javax.ws.rs.core.Response create(@Nullable @Nullable RestTrustedKey input, @BeanParam ExpansionParam expansion, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-
delete
@DELETE @Path("{id}") public javax.ws.rs.core.Response delete(@PathParam("id") long id)
-