Class AbstractAuthInitialize
java.lang.Object
org.springframework.data.gemfire.support.DeclarableSupport
org.springframework.data.gemfire.support.WiringDeclarableSupport
org.springframework.data.gemfire.config.annotation.support.AbstractAuthInitialize
- All Implemented Interfaces:
CacheCallback
,Declarable
,AuthInitialize
,Aware
,EnvironmentAware
- Direct Known Subclasses:
AutoConfiguredAuthenticationInitializer
public abstract class AbstractAuthInitialize
extends WiringDeclarableSupport
implements AuthInitialize, EnvironmentAware
The
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.- Since:
- 2.0.0
- Author:
- John Blum
- See Also:
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.support.WiringDeclarableSupport
TEMPLATE_BEAN_NAME_PROPERTY
Fields inherited from interface org.apache.geode.security.AuthInitialize
SECURITY_PASSWORD, SECURITY_USERNAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected abstract Properties
doGetCredentials
(Properties properties) protected void
doInit()
final Properties
getCredentials
(Properties properties, DistributedMember distributedMember, boolean isPeer) protected Optional<Environment>
Returns a reference to the configured SpringEnvironment
.final void
void
setEnvironment
(Environment environment) Sets a reference to the configured SpringEnvironment
.Methods inherited from class org.springframework.data.gemfire.support.WiringDeclarableSupport
configureThis, configureThis, init, newBeanConfigurer, newBeanConfigurer
Methods inherited from class org.springframework.data.gemfire.support.DeclarableSupport
getBeanFactory, getBeanFactoryKey, locateBeanFactory, locateBeanFactory, setBeanFactoryKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.geode.security.AuthInitialize
getCredentials, init
Methods inherited from interface org.apache.geode.cache.Declarable
init, initialize
-
Constructor Details
-
AbstractAuthInitialize
public AbstractAuthInitialize()
-
-
Method Details
-
setEnvironment
Sets a reference to the configured SpringEnvironment
.- Specified by:
setEnvironment
in interfaceEnvironmentAware
- Parameters:
environment
- reference to the configured SpringEnvironment
.- See Also:
-
getEnvironment
Returns a reference to the configured SpringEnvironment
.- Returns:
- a reference to the configured Spring
Environment
. - See Also:
-
init
public final void init(LogWriter logWriter, LogWriter logWriter1) throws AuthenticationFailedException - Specified by:
init
in interfaceAuthInitialize
- Throws:
AuthenticationFailedException
-
doInit
protected void doInit() -
getCredentials
public final Properties getCredentials(Properties properties, DistributedMember distributedMember, boolean isPeer) throws AuthenticationFailedException - Specified by:
getCredentials
in interfaceAuthInitialize
- Throws:
AuthenticationFailedException
-
doGetCredentials
-
close
public void close()- Specified by:
close
in interfaceCacheCallback
- Overrides:
close
in classDeclarableSupport
-