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.
@FunctionalInterface public interface SecurityContextFactory
A factory for aSecurityContext.There can only be one security context installed in each secure runtime.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SecurityContextcreateContext(SecurityConfiguration securityConfig)create security context.default booleanisCompatibleWith(SecurityConfiguration securityConfig)Check if this factory is compatible with the security configuration.
-
-
-
Method Detail
-
isCompatibleWith
default boolean isCompatibleWith(SecurityConfiguration securityConfig)
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
-
-