Class CaptchaServiceFactory

java.lang.Object
org.dspace.eperson.factory.CaptchaServiceFactory
Direct Known Subclasses:
CaptchaServiceFactoryImpl

public abstract class CaptchaServiceFactory extends Object
Factory to get services for Captcha protection of DSpace forms / endpoints
Author:
Kim Shepherd
  • Constructor Details

    • CaptchaServiceFactory

      public CaptchaServiceFactory()
  • Method Details

    • getInstance

      public static CaptchaServiceFactory getInstance()
      Get the singleton instance of this class
      Returns:
      singleton instance of this class
    • getCaptchaService

      public abstract CaptchaService getCaptchaService()
      Get the configured CaptchService TODO: This will be fully "operational" once we have full coverage of all forms by all supported captcha providers. Until then, REST repositories should request the specific captcha service required.
      Returns:
      the configured CaptchaService
    • getAltchaCaptchaService

      public abstract CaptchaService getAltchaCaptchaService()
      Get the configured Altcha CaptchaService. This is needed by REST repositories processing captcha payloads for forms that are *only* protected by Altcha. TODO: We are working towards full coverage of all forms by all providers
      Returns:
      the configured Altcha CaptchaService
    • getGoogleCaptchaService

      public abstract CaptchaService getGoogleCaptchaService()
      Get the configured Google CaptchaService. This is needed by REST repositories processing captcha payloads for forms that are *only* protected by Google. TODO: We are working towards full coverage of all forms by all providers
      Returns:
      the configured Google CaptchaService