Interface SecurityModuleFactory
-
- All Known Implementing Classes:
HadoopModuleFactory
,JaasModuleFactory
,ZookeeperModuleFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SecurityModuleFactory
A factory for aSecurityModule
. A factory can determine whether aSecurityModule
works in the given environment (for example, it can check whether Hadoop dependencies are available) and can then create (or not) a module based on that.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SecurityModule
createModule(SecurityConfiguration securityConfig)
Creates and returns aSecurityModule
.
-
-
-
Method Detail
-
createModule
SecurityModule createModule(SecurityConfiguration securityConfig)
Creates and returns aSecurityModule
. This can returnnull
if the type ofSecurityModule
that this factory can create does not work in the current environment.
-
-