|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.security.DefaultCaptchaManager
public class DefaultCaptchaManager
Field Summary | |
---|---|
static org.apache.log4j.Category |
log
Deprecated. since 5.5, use private logger |
Constructor Summary | |
---|---|
DefaultCaptchaManager()
|
Method Summary | |
---|---|
java.util.Collection |
addCaptchaGroups(java.util.Collection groupList)
Method adds a Collection of group names to the existing groups for the captcha group setting. |
void |
afterPropertiesSet()
|
void |
destroy()
|
void |
excludeGroups()
|
void |
excludeNone()
|
void |
excludeRegisteredUsers()
|
java.lang.String |
generateCaptchaId()
|
java.lang.String |
getExclude()
|
com.octo.captcha.service.image.ImageCaptchaService |
getImageCaptchaService()
|
UserAccessor |
getUserAccessor()
|
boolean |
isCaptchaAvailable()
|
boolean |
isCaptchaEnabled()
|
boolean |
isDebugEnabled()
|
void |
removeCaptchaGroup(java.lang.String group)
Removes a group from the list of captcha groups |
void |
setCaptchaEnabled(boolean value)
|
void |
setCaptchaEngineClassName(java.lang.String captchaEngineClassName)
|
void |
setCaptchaGroups(java.util.Collection groupList)
|
void |
setCaptchaStore(com.octo.captcha.service.captchastore.CaptchaStore captchaStore)
|
void |
setDebugMode(boolean value)
If true the captcha manager will accept "DEBUG" for every generated capthca and reject all other tokens. |
void |
setExclude(java.lang.String value)
|
void |
setImageCaptchaService(com.octo.captcha.service.image.ImageCaptchaService imageCaptchaService)
|
void |
setSettingsManager(SettingsManager settingsManager)
|
void |
setUserAccessor(UserAccessor userAccessor)
|
boolean |
showCaptchaForCurrentUser()
Determines whether a capture has to be shown for the currently logged in users |
boolean |
validateCaptcha(java.lang.String captchaId,
java.lang.String captchaResponse)
validate captcha response |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final org.apache.log4j.Category log
Constructor Detail |
---|
public DefaultCaptchaManager()
Method Detail |
---|
public void setCaptchaStore(com.octo.captcha.service.captchastore.CaptchaStore captchaStore)
public void setCaptchaEngineClassName(java.lang.String captchaEngineClassName)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void destroy() throws java.lang.Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
java.lang.Exception
public boolean isCaptchaAvailable()
isCaptchaAvailable
in interface CaptchaManager
public boolean validateCaptcha(java.lang.String captchaId, java.lang.String captchaResponse)
CaptchaManager
validateCaptcha
in interface CaptchaManager
public boolean isCaptchaEnabled()
isCaptchaEnabled
in interface CaptchaManager
public void setCaptchaEnabled(boolean value)
setCaptchaEnabled
in interface CaptchaManager
public boolean isDebugEnabled()
isDebugEnabled
in interface CaptchaManager
public void setDebugMode(boolean value)
CaptchaManager
setDebugMode
in interface CaptchaManager
public void excludeNone()
excludeNone
in interface CaptchaManager
public void excludeRegisteredUsers()
excludeRegisteredUsers
in interface CaptchaManager
public void excludeGroups()
excludeGroups
in interface CaptchaManager
public java.lang.String getExclude()
getExclude
in interface CaptchaManager
public void setExclude(java.lang.String value)
setExclude
in interface CaptchaManager
public void setCaptchaGroups(java.util.Collection groupList)
setCaptchaGroups
in interface CaptchaManager
public java.util.Collection addCaptchaGroups(java.util.Collection groupList)
CaptchaManager
addCaptchaGroups
in interface CaptchaManager
groupList
- Collection of group names
public void removeCaptchaGroup(java.lang.String group)
CaptchaManager
removeCaptchaGroup
in interface CaptchaManager
group
- Stringpublic boolean showCaptchaForCurrentUser()
CaptchaManager
showCaptchaForCurrentUser
in interface CaptchaManager
public void setSettingsManager(SettingsManager settingsManager)
public UserAccessor getUserAccessor()
public void setUserAccessor(UserAccessor userAccessor)
public void setImageCaptchaService(com.octo.captcha.service.image.ImageCaptchaService imageCaptchaService)
setImageCaptchaService
in interface CaptchaManager
public com.octo.captcha.service.image.ImageCaptchaService getImageCaptchaService()
getImageCaptchaService
in interface CaptchaManager
public java.lang.String generateCaptchaId()
generateCaptchaId
in interface CaptchaManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |