Class CaptchaResource
java.lang.Object
com.atlassian.bamboo.plugins.testutils.rest.resource.CaptchaResource
@Path("captcha")
@Consumes({"application/json","application/xml"})
@Produces({"application/json","application/xml"})
@Singleton
public class CaptchaResource
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionCaptchaResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, BambooUserManager bambooUserManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Responsejavax.ws.rs.core.Responsejavax.ws.rs.core.ResponseresetCaptchaForUser(String userName) javax.ws.rs.core.ResponsesetCaptchaConfiguration(RestCaptchaConfiguration captchaConfiguration) javax.ws.rs.core.ResponsesetLoginAttemptsByUser(String userName, Integer loginAttempts)
-
Constructor Details
-
CaptchaResource
@Inject public CaptchaResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, BambooUserManager bambooUserManager)
-
-
Method Details
-
getByKey
@GET @Path("{key}") public javax.ws.rs.core.Response getByKey(@PathParam("key") String key) throws IllegalAccessException, NoSuchFieldException -
getCaptchaConfiguration
@GET public javax.ws.rs.core.Response getCaptchaConfiguration() -
setCaptchaConfiguration
@POST public javax.ws.rs.core.Response setCaptchaConfiguration(RestCaptchaConfiguration captchaConfiguration) -
resetCaptchaForUser
@POST @Path("reset/{userName}") public javax.ws.rs.core.Response resetCaptchaForUser(@PathParam("userName") String userName) -
setLoginAttemptsByUser
-