Class HadoopSecurityContextFactory
- java.lang.Object
-
- org.apache.flink.runtime.security.contexts.HadoopSecurityContextFactory
-
- All Implemented Interfaces:
SecurityContextFactory
public class HadoopSecurityContextFactory extends Object implements SecurityContextFactory
Default security context factory that instantiatesSecurityContext
based on installed modules, it would instantiateHadoopSecurityContext
if aHadoopModuleFactory
is included.
-
-
Constructor Summary
Constructors Constructor Description HadoopSecurityContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityContext
createContext(SecurityConfiguration securityConfig)
create security context.boolean
isCompatibleWith(SecurityConfiguration securityConfig)
Check if this factory is compatible with the security configuration.
-
-
-
Method Detail
-
isCompatibleWith
public boolean isCompatibleWith(SecurityConfiguration securityConfig)
Description copied from interface:SecurityContextFactory
Check if this factory is compatible with the security configuration.Specific implementation must override this to provide compatibility check, by default it will always return
false
.- Specified by:
isCompatibleWith
in interfaceSecurityContextFactory
- Parameters:
securityConfig
- security configurations.- Returns:
true
if factory is compatible with the configuration.
-
createContext
public SecurityContext createContext(SecurityConfiguration securityConfig) throws SecurityContextInitializeException
Description copied from interface:SecurityContextFactory
create security context.- Specified by:
createContext
in interfaceSecurityContextFactory
- Parameters:
securityConfig
- security configuration used to create context.- Returns:
- the security context object.
- Throws:
SecurityContextInitializeException
-
-