Class AutoConfiguredAuthenticationInitializer
java.lang.Object
org.springframework.data.gemfire.support.DeclarableSupport
org.springframework.data.gemfire.support.WiringDeclarableSupport
org.springframework.data.gemfire.config.annotation.support.AbstractAuthInitialize
org.springframework.data.gemfire.config.annotation.support.AutoConfiguredAuthenticationInitializer
- All Implemented Interfaces:
org.apache.geode.cache.CacheCallback
,org.apache.geode.cache.Declarable
,org.apache.geode.security.AuthInitialize
,org.springframework.beans.factory.Aware
,org.springframework.context.EnvironmentAware
The
AutoConfiguredAuthenticationInitializer
class is an AuthInitialize
implementation,
which auto-configures security, and specifically authentication, for Apache Geode/Pivotal GemFire.- Since:
- 2.0.0
- See Also:
-
Properties
AuthInitialize
Authentication
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Properties
static final String
static final String
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected Properties
doGetCredentials
(Properties properties) protected Optional<Authentication<String,
String>> Factory method used to construct a new instance ofAutoConfiguredAuthenticationInitializer
that will be auto-wired with a SDGAuthentication
providing Apache Geode Security and Auth were configured/requested.void
setAuthentication
(Authentication<String, String> authentication) Methods inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAuthInitialize
doInit, getCredentials, getEnvironment, init, setEnvironment
Methods inherited from class org.springframework.data.gemfire.support.WiringDeclarableSupport
configureThis, configureThis, initialize, newBeanConfigurer, newBeanConfigurer
Methods inherited from class org.springframework.data.gemfire.support.DeclarableSupport
close, 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.CacheCallback
close
Methods inherited from interface org.apache.geode.cache.Declarable
init, initialize
-
Field Details
-
SECURITY_USERNAME_PROPERTY
- See Also:
-
SECURITY_PASSWORD_PROPERTY
- See Also:
-
NO_PARAMETERS
-
-
Constructor Details
-
AutoConfiguredAuthenticationInitializer
public AutoConfiguredAuthenticationInitializer()
-
-
Method Details
-
newAuthenticationInitializer
Factory method used to construct a new instance ofAutoConfiguredAuthenticationInitializer
that will be auto-wired with a SDGAuthentication
providing Apache Geode Security and Auth were configured/requested.- Returns:
- a new instance of
AutoConfiguredAuthenticationInitializer
. - See Also:
-
setAuthentication
@Autowired(required=false) public void setAuthentication(@Nullable Authentication<String, String> authentication) -
getAuthentication
-
doGetCredentials
- Specified by:
doGetCredentials
in classAbstractAuthInitialize
-