public interface CaptchaManager
Modifier and Type | Method and Description |
---|---|
Collection |
addCaptchaGroups(Collection selectedGroups)
Method adds a Collection of group names to the existing groups for the captcha group setting.
|
void |
excludeGroups() |
void |
excludeNone() |
void |
excludeRegisteredUsers() |
String |
generateCaptchaId() |
String |
getExclude() |
com.octo.captcha.service.image.ImageCaptchaService |
getImageCaptchaService() |
boolean |
isCaptchaAvailable() |
boolean |
isCaptchaEnabled() |
boolean |
isDebugEnabled() |
void |
removeCaptchaGroup(String group)
Removes a group from the list of captcha groups
|
void |
setCaptchaEnabled(boolean value) |
void |
setCaptchaGroups(Collection groupList) |
void |
setDebugMode(boolean value)
If true the captcha manager will accept "DEBUG" for every generated capthca and reject
all other tokens.
|
void |
setExclude(String value) |
void |
setImageCaptchaService(com.octo.captcha.service.image.ImageCaptchaService imageCaptchaService) |
boolean |
showCaptchaForCurrentUser()
Determines whether a capture has to be shown for the currently logged in users
|
boolean |
validateCaptcha(String captchaId,
String captchaResponse)
validate captcha response
|
boolean validateCaptcha(String captchaId, String captchaResponse)
captchaId
- captchaResponse
- boolean isCaptchaEnabled()
void setCaptchaEnabled(boolean value)
boolean isDebugEnabled()
void setDebugMode(boolean value)
If true the exclude list is ignored and a Captcha prompt is supplied for all requests
value
- String getExclude()
void setExclude(String value)
Collection addCaptchaGroups(Collection selectedGroups)
selectedGroups
- Collection of group namesvoid removeCaptchaGroup(String group)
group
- Stringboolean showCaptchaForCurrentUser()
void excludeNone()
void excludeRegisteredUsers()
void excludeGroups()
void setCaptchaGroups(Collection groupList)
boolean isCaptchaAvailable()
void setImageCaptchaService(com.octo.captcha.service.image.ImageCaptchaService imageCaptchaService)
com.octo.captcha.service.image.ImageCaptchaService getImageCaptchaService()
String generateCaptchaId()
Copyright © 2003–2020 Atlassian. All rights reserved.