public abstract class AbstractAuthInitialize extends WiringDeclarableSupport implements org.apache.geode.security.AuthInitialize, EnvironmentAware
AuthInitialize
interface used to authenticate a client
or peer with a secure Apache Geode cluster.Properties
,
Cache
,
DistributedMember
,
AuthInitialize
,
EnvironmentAware
,
Environment
,
WiringDeclarableSupport
TEMPLATE_BEAN_NAME_PROPERTY
Constructor and Description |
---|
AbstractAuthInitialize() |
Modifier and Type | Method and Description |
---|---|
protected abstract Properties |
doGetCredentials(Properties properties) |
protected void |
doInit() |
Properties |
getCredentials(Properties properties,
org.apache.geode.distributed.DistributedMember distributedMember,
boolean isPeer)
Gets the security credentials used to authenticate this Apache Geode node
with the Apache Geode distributed system (cluster).
|
protected Optional<Environment> |
getEnvironment()
Get an
Optional reference to the configured Spring Environment . |
void |
init(org.apache.geode.LogWriter systemLogWriter,
org.apache.geode.LogWriter securityLogWriter)
Initializes this Apache Geode component by auto-wiring (configuring) any dependencies managed by
the Spring container required during authentication.
|
void |
setEnvironment(Environment environment)
Sets a reference to the configured Spring
Environment . |
configureThis, configureThis, initialize, newBeanConfigurer, newBeanConfigurer
close, getBeanFactory, getBeanFactoryKey, locateBeanFactory, locateBeanFactory, setBeanFactoryKey
public void setEnvironment(@Nullable Environment environment)
Environment
.setEnvironment
in interface EnvironmentAware
environment
- reference to the configured Spring Environment
.Environment
protected Optional<Environment> getEnvironment()
Optional
reference to the configured Spring Environment
.Optional
reference to the configured Spring Environment
.Environment
,
Optional
public final void init(org.apache.geode.LogWriter systemLogWriter, org.apache.geode.LogWriter securityLogWriter) throws org.apache.geode.security.AuthenticationFailedException
init
in interface org.apache.geode.security.AuthInitialize
systemLogWriter
- LogWriter
for system output.securityLogWriter
- LogWriter
for security output.org.apache.geode.security.AuthenticationFailedException
- if this Apache Geode node could not be authenticated with
the Apache Geode distributed system (cluster).WiringDeclarableSupport.initialize(Cache, Properties)
,
doInit()
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
properties
- Apache Geode Properties
to configure with authentication credentials
used during the authentication request.distributedMember
- DistributedMember
representing this Apache Geode node.isPeer
- boolean value indicating whether this Apache Geode node is joining the cluster
as a peer or a client.Properties
.org.apache.geode.security.AuthenticationFailedException
- if this Apache Geode node could not be authenticated with
the Apache Geode distributed system (cluster).DistributedMember
,
doGetCredentials(Properties)
,
Properties
protected abstract Properties doGetCredentials(Properties properties)
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.