Spring Data for VMware GemFire
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:
-
PropertiesAuthInitializeAuthentication
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Propertiesstatic final Stringstatic final StringFields inherited from class org.springframework.data.gemfire.support.WiringDeclarableSupport
TEMPLATE_BEAN_NAME_PROPERTYFields inherited from interface org.apache.geode.security.AuthInitialize
SECURITY_PASSWORD, SECURITY_USERNAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertiesdoGetCredentials(Properties properties) protected Optional<Authentication<String,String>> Factory method used to construct a new instance ofAutoConfiguredAuthenticationInitializerthat will be auto-wired with a SDGAuthenticationproviding Apache Geode Security and Auth were configured/requested.voidsetAuthentication(Authentication<String, String> authentication) Methods inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAuthInitialize
doInit, getCredentials, getEnvironment, init, setEnvironmentMethods inherited from class org.springframework.data.gemfire.support.WiringDeclarableSupport
configureThis, configureThis, initialize, newBeanConfigurer, newBeanConfigurerMethods inherited from class org.springframework.data.gemfire.support.DeclarableSupport
close, getBeanFactory, getBeanFactoryKey, locateBeanFactory, locateBeanFactory, setBeanFactoryKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.geode.security.AuthInitialize
getCredentials, initMethods inherited from interface org.apache.geode.cache.CacheCallback
closeMethods 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 ofAutoConfiguredAuthenticationInitializerthat will be auto-wired with a SDGAuthenticationproviding 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:
doGetCredentialsin classAbstractAuthInitialize
-