public abstract class AbstractAuthInitialize extends WiringDeclarableSupport implements org.apache.geode.security.AuthInitialize, EnvironmentAware
AbstractAuthInitialize
class is an abstract support class and basic implementation
of the AuthInitialize
interface used in the authentication of a client or peer
with a secure GemFire/Geode cluster.Properties
,
AuthInitialize
,
EnvironmentAware
,
Environment
,
WiringDeclarableSupport
TEMPLATE_BEAN_NAME_PROPERTY
Constructor and Description |
---|
AbstractAuthInitialize() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract Properties |
doGetCredentials(Properties properties) |
protected void |
doInit() |
Properties |
getCredentials(Properties properties,
org.apache.geode.distributed.DistributedMember distributedMember,
boolean isPeer) |
protected Optional<Environment> |
getEnvironment()
Returns a reference to the configured Spring
Environment . |
void |
init(org.apache.geode.LogWriter logWriter,
org.apache.geode.LogWriter logWriter1) |
void |
setEnvironment(Environment environment)
Sets a reference to the configured Spring
Environment . |
configureThis, configureThis, init, newBeanConfigurer, newBeanConfigurer
getBeanFactory, getBeanFactoryKey, locateBeanFactory, locateBeanFactory, setBeanFactoryKey
public void setEnvironment(Environment environment)
Environment
.setEnvironment
in interface EnvironmentAware
environment
- reference to the configured Spring Environment
.Environment
protected Optional<Environment> getEnvironment()
Environment
.Environment
.Environment
public final void init(org.apache.geode.LogWriter logWriter, org.apache.geode.LogWriter logWriter1) throws org.apache.geode.security.AuthenticationFailedException
init
in interface org.apache.geode.security.AuthInitialize
org.apache.geode.security.AuthenticationFailedException
protected void doInit()
public final Properties getCredentials(Properties properties, org.apache.geode.distributed.DistributedMember distributedMember, boolean isPeer) throws org.apache.geode.security.AuthenticationFailedException
getCredentials
in interface org.apache.geode.security.AuthInitialize
org.apache.geode.security.AuthenticationFailedException
protected abstract Properties doGetCredentials(Properties properties)
public void close()
close
in interface org.apache.geode.cache.CacheCallback
close
in class DeclarableSupport
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.