Class CaptchaScriptService

  • All Implemented Interfaces:
    org.xwiki.script.service.ScriptService

    @Component
    @Named("captcha")
    @Singleton
    public class CaptchaScriptService
    extends Object
    implements org.xwiki.script.service.ScriptService
    Exposes Captchas to scripts.
    Since:
    10.8RC1
    Version:
    $Id: c42c4a623b8619e67626a56988a2c5f1cf38200a $
    • Constructor Detail

      • CaptchaScriptService

        public CaptchaScriptService()
    • Method Detail

      • getCaptchaNames

        public List<String> getCaptchaNames()
        Returns:
        the list of available CAPTCHA implementation names
      • get

        public Captcha get​(String captchaName)
        Parameters:
        captchaName - the name of the CAPTCHA implementation to get
        Returns:
        the CAPTCHA implementation
      • getDefaultCaptchaName

        public String getDefaultCaptchaName()
        Returns:
        the name of the configured CAPTCHA implementation to use by default
      • getDefault

        public Captcha getDefault()
        Returns:
        the configured CAPTCHA implementation to use by default