public class HadoopSecurityContextFactory extends Object implements SecurityContextFactory
SecurityContext
based on installed
modules, it would instantiate HadoopSecurityContext
if a HadoopModuleFactory
is
included.Constructor and Description |
---|
HadoopSecurityContextFactory() |
Modifier and Type | Method and Description |
---|---|
SecurityContext |
createContext(SecurityConfiguration securityConfig)
create security context.
|
boolean |
isCompatibleWith(SecurityConfiguration securityConfig)
Check if this factory is compatible with the security configuration.
|
public boolean isCompatibleWith(SecurityConfiguration securityConfig)
SecurityContextFactory
Specific implementation must override this to provide compatibility check, by default it
will always return false
.
isCompatibleWith
in interface SecurityContextFactory
securityConfig
- security configurations.true
if factory is compatible with the configuration.public SecurityContext createContext(SecurityConfiguration securityConfig) throws SecurityContextInitializeException
SecurityContextFactory
createContext
in interface SecurityContextFactory
securityConfig
- security configuration used to create context.SecurityContextInitializeException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.