Package org.dspace.eperson.factory
Class CaptchaServiceFactory
java.lang.Object
org.dspace.eperson.factory.CaptchaServiceFactory
- Direct Known Subclasses:
CaptchaServiceFactoryImpl
Factory to get services for Captcha protection of DSpace forms / endpoints
- Author:
- Kim Shepherd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CaptchaServiceGet the configured Altcha CaptchaService.abstract CaptchaServiceGet the configured CaptchService TODO: This will be fully "operational" once we have full coverage of all forms by all supported captcha providers.abstract CaptchaServiceGet the configured Google CaptchaService.static CaptchaServiceFactoryGet the singleton instance of this class
-
Constructor Details
-
CaptchaServiceFactory
public CaptchaServiceFactory()
-
-
Method Details
-
getInstance
Get the singleton instance of this class- Returns:
- singleton instance of this class
-
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
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
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
-