类 KeyExchangeConfig
- java.lang.Object
-
- ai.yue.library.base.crypto.config.KeyExchangeConfig
-
@Configuration @Import({KeyExchangeController.class,RequestDecryptHandler.class,ResponseEncryptHandler.class}) @EnableConfigurationProperties(KeyExchangeProperties.class) @ConditionalOnProperty(prefix="yue.crypto.key-exchange", name="enabled", havingValue="true") public class KeyExchangeConfig extends Object密钥交换Bean配置- 从以下版本开始:
- 2018年6月11日
- 作者:
- ylyue
-
-
构造器概要
构造器 构造器 说明 KeyExchangeConfig()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 MapKeyExchangeStoragemapKeyExchangeStorage()RedisKeyExchangeStorageredisKeyExchangeStorage()
-
-
-
方法详细资料
-
mapKeyExchangeStorage
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="yue.crypto.key-exchange", name="key-exchange-storage-type", havingValue="LOCAL_MAP", matchIfMissing=true) public MapKeyExchangeStorage mapKeyExchangeStorage()
-
redisKeyExchangeStorage
@Bean @ConditionalOnMissingBean @ConditionalOnClass({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()
-
-