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.
A factory for a
SecurityModule. A factory can determine whether a SecurityModule
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
Modifier and TypeMethodDescriptioncreateModule(SecurityConfiguration securityConfig) Creates and returns aSecurityModule.
-
Method Details
-
createModule
Creates and returns aSecurityModule. This can returnnullif the type ofSecurityModulethat this factory can create does not work in the current environment.
-