Class CensoringWordGenerator
java.lang.Object
com.atlassian.confluence.internal.security.captcha.CensoringWordGenerator
- All Implemented Interfaces:
com.octo.captcha.component.word.wordgenerator.WordGenerator
public final class CensoringWordGenerator
extends Object
implements com.octo.captcha.component.word.wordgenerator.WordGenerator
A word generator that wraps around another word generator, and censors the words that
the wrapped generator produces.
- Since:
- 6.0.6
-
Constructor Summary
ConstructorsConstructorDescriptionCensoringWordGenerator
(com.octo.captcha.component.word.wordgenerator.WordGenerator censoredWordGenerator) Constructs a censoring word generator that censors the given word generator. -
Method Summary
-
Constructor Details
-
CensoringWordGenerator
public CensoringWordGenerator(com.octo.captcha.component.word.wordgenerator.WordGenerator censoredWordGenerator) Constructs a censoring word generator that censors the given word generator.- Parameters:
censoredWordGenerator
- the word generator that will be censored. Must not be null.
-
-
Method Details
-
getWord
- Specified by:
getWord
in interfacecom.octo.captcha.component.word.wordgenerator.WordGenerator
-
getWord
- Specified by:
getWord
in interfacecom.octo.captcha.component.word.wordgenerator.WordGenerator
-