@Configuration @Import(value={KeyExchangeController.class,RequestDecryptHandler.class,ResponseEncryptHandler.class}) @EnableConfigurationProperties(value=KeyExchangeProperties.class) @ConditionalOnProperty(prefix="yue.crypto.key-exchange", name="enabled", havingValue="true") public class KeyExchangeConfig extends Object
Constructor and Description |
---|
KeyExchangeConfig() |
Modifier and Type | Method and Description |
---|---|
MapKeyExchangeStorage |
mapKeyExchangeStorage() |
RedisKeyExchangeStorage |
redisKeyExchangeStorage() |
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="yue.crypto.key-exchange", name="key-exchange-storage-type", havingValue="LOCAL_MAP", matchIfMissing=true) public MapKeyExchangeStorage mapKeyExchangeStorage()
@Bean @ConditionalOnMissingBean @ConditionalOnClass(value={Redis.class,org.springframework.data.redis.connection.RedisConnectionFactory.class}) @ConditionalOnProperty(prefix="yue.crypto.key-exchange", name="key-exchange-storage-type", havingValue="REDIS") public RedisKeyExchangeStorage redisKeyExchangeStorage()
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.