@FunctionalInterface public interface SecurityModuleFactory
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.Modifier and Type | Method and Description |
---|---|
SecurityModule |
createModule(SecurityConfiguration securityConfig)
Creates and returns a
SecurityModule . |
SecurityModule createModule(SecurityConfiguration securityConfig)
SecurityModule
. This can return null
if the type of
SecurityModule
that this factory can create does not work in the current environment.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.