Class SecurityFactoryServiceLoader
java.lang.Object
org.apache.flink.runtime.security.SecurityFactoryServiceLoader
The Service provider discovery for searching suitable security factory.
It could discover either SecurityContextFactory or SecurityModuleFactory,
based on provided requirements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityContextFactoryfindContextFactory(String securityContextFactoryClass) Find a suitableSecurityContextFactorybased on canonical name.static SecurityModuleFactoryfindModuleFactory(String securityModuleFactoryClass) Find a suitableSecurityModuleFactorybased on canonical name.
-
Constructor Details
-
SecurityFactoryServiceLoader
public SecurityFactoryServiceLoader()
-
-
Method Details
-
findModuleFactory
public static SecurityModuleFactory findModuleFactory(String securityModuleFactoryClass) throws NoMatchSecurityFactoryException Find a suitableSecurityModuleFactorybased on canonical name.- Throws:
NoMatchSecurityFactoryException
-
findContextFactory
public static SecurityContextFactory findContextFactory(String securityContextFactoryClass) throws NoMatchSecurityFactoryException Find a suitableSecurityContextFactorybased on canonical name.- Throws:
NoMatchSecurityFactoryException
-