@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
| 构造器和说明 |
|---|
KeyExchangeConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
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={ai.yue.library.data.redis.client.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 © 2021 Pivotal Software, Inc.. All rights reserved.