Edit Javadoc.
This commit is contained in:
@@ -46,10 +46,14 @@ import org.springframework.data.gemfire.config.annotation.support.AutoConfigured
|
|||||||
* and specifically Authentication between a client and server using Spring Data Geode Security annotations.
|
* and specifically Authentication between a client and server using Spring Data Geode Security annotations.
|
||||||
*
|
*
|
||||||
* @author John Blum
|
* @author John Blum
|
||||||
|
* @see java.util.Properties
|
||||||
* @see org.apache.geode.cache.client.ClientCache
|
* @see org.apache.geode.cache.client.ClientCache
|
||||||
|
* @see org.springframework.boot.SpringApplication
|
||||||
* @see org.springframework.boot.autoconfigure.EnableAutoConfiguration
|
* @see org.springframework.boot.autoconfigure.EnableAutoConfiguration
|
||||||
|
* @see org.springframework.boot.cloud.CloudPlatform
|
||||||
* @see org.springframework.boot.data.geode.autoconfigure.ClientCacheAutoConfiguration
|
* @see org.springframework.boot.data.geode.autoconfigure.ClientCacheAutoConfiguration
|
||||||
* @see org.springframework.context.annotation.Bean
|
* @see org.springframework.boot.data.geode.core.env.VcapPropertySource
|
||||||
|
* @see org.springframework.boot.env.EnvironmentPostProcessor
|
||||||
* @see org.springframework.context.annotation.Configuration
|
* @see org.springframework.context.annotation.Configuration
|
||||||
* @see org.springframework.core.env.Environment
|
* @see org.springframework.core.env.Environment
|
||||||
* @see org.springframework.data.gemfire.client.ClientCacheFactoryBean
|
* @see org.springframework.data.gemfire.client.ClientCacheFactoryBean
|
||||||
|
|||||||
@@ -58,8 +58,13 @@ import org.springframework.util.StringUtils;
|
|||||||
* between client and servers when using the client/server topology.
|
* between client and servers when using the client/server topology.
|
||||||
*
|
*
|
||||||
* @author John Blum
|
* @author John Blum
|
||||||
|
* @see java.io.File
|
||||||
|
* @see java.net.URL
|
||||||
|
* @see java.util.Properties
|
||||||
|
* @see org.springframework.boot.SpringApplication
|
||||||
* @see org.apache.geode.cache.client.ClientCache
|
* @see org.apache.geode.cache.client.ClientCache
|
||||||
* @see org.springframework.boot.autoconfigure.EnableAutoConfiguration
|
* @see org.springframework.boot.autoconfigure.EnableAutoConfiguration
|
||||||
|
* @see org.springframework.boot.data.geode.autoconfigure.ClientCacheAutoConfiguration
|
||||||
* @see org.springframework.boot.env.EnvironmentPostProcessor
|
* @see org.springframework.boot.env.EnvironmentPostProcessor
|
||||||
* @see org.springframework.context.annotation.Condition
|
* @see org.springframework.context.annotation.Condition
|
||||||
* @see org.springframework.context.annotation.Conditional
|
* @see org.springframework.context.annotation.Conditional
|
||||||
@@ -72,14 +77,14 @@ import org.springframework.util.StringUtils;
|
|||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
@ConditionalOnClass({ ClientCacheFactoryBean.class, ClientCache.class })
|
|
||||||
@Conditional(SslAutoConfiguration.EnableSslCondition.class)
|
|
||||||
@AutoConfigureBefore(ClientCacheAutoConfiguration.class)
|
@AutoConfigureBefore(ClientCacheAutoConfiguration.class)
|
||||||
|
@Conditional(SslAutoConfiguration.EnableSslCondition.class)
|
||||||
|
@ConditionalOnClass({ ClientCacheFactoryBean.class, ClientCache.class })
|
||||||
@EnableSsl
|
@EnableSsl
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public class SslAutoConfiguration {
|
public class SslAutoConfiguration {
|
||||||
|
|
||||||
public static final String SSL_ENVIRONMENT_POST_PROCESSOR_DISABLED_PROPERTY =
|
public static final String SECURITY_SSL_ENVIRONMENT_POST_PROCESSOR_DISABLED_PROPERTY =
|
||||||
"spring.boot.data.geode.security.ssl.environment.post-processor.disabled";
|
"spring.boot.data.geode.security.ssl.environment.post-processor.disabled";
|
||||||
|
|
||||||
private static final String CURRENT_WORKING_DIRECTORY = System.getProperty("user.dir");
|
private static final String CURRENT_WORKING_DIRECTORY = System.getProperty("user.dir");
|
||||||
@@ -273,7 +278,12 @@ public class SslAutoConfiguration {
|
|||||||
@ConditionalOnProperty(prefix = "spring.data.gemfire.security.ssl", name = { "keystore", "truststore", })
|
@ConditionalOnProperty(prefix = "spring.data.gemfire.security.ssl", name = { "keystore", "truststore", })
|
||||||
static class SpringDataGeodeSslContextCondition {}
|
static class SpringDataGeodeSslContextCondition {}
|
||||||
|
|
||||||
@ConditionalOnProperty({ "gemfire.ssl-keystore", "gemfire.ssl-truststore", "ssl-keystore", "ssl-truststore", })
|
@ConditionalOnProperty({
|
||||||
|
GEMFIRE_SSL_KEYSTORE_PROPERTY,
|
||||||
|
GEMFIRE_SSL_TRUSTSTORE_PROPERTY,
|
||||||
|
SSL_KEYSTORE_PROPERTY,
|
||||||
|
SSL_TRUSTSTORE_PROPERTY,
|
||||||
|
})
|
||||||
static class StandaloneApacheGeodeSslContextCondition {}
|
static class StandaloneApacheGeodeSslContextCondition {}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -305,7 +315,7 @@ public class SslAutoConfiguration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isDisabled(Environment environment) {
|
private boolean isDisabled(Environment environment) {
|
||||||
return Boolean.getBoolean(SSL_ENVIRONMENT_POST_PROCESSOR_DISABLED_PROPERTY);
|
return Boolean.getBoolean(SECURITY_SSL_ENVIRONMENT_POST_PROCESSOR_DISABLED_PROPERTY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user