Interface SecurityContextFactory
- All Known Implementing Classes:
HadoopSecurityContextFactory,NoOpSecurityContextFactory
- 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
SecurityContext.
There can only be one security context installed in each secure runtime.
-
Method Summary
Modifier and TypeMethodDescriptioncreateContext(SecurityConfiguration securityConfig) create security context.default booleanisCompatibleWith(SecurityConfiguration securityConfig) Check if this factory is compatible with the security configuration.
-
Method Details
-
isCompatibleWith
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.- Parameters:
securityConfig- security configurations.- Returns:
trueif factory is compatible with the configuration.
-
createContext
SecurityContext createContext(SecurityConfiguration securityConfig) throws SecurityContextInitializeException create security context.- Parameters:
securityConfig- security configuration used to create context.- Returns:
- the security context object.
- Throws:
SecurityContextInitializeException
-