org.springframework.cloud.bootstrap.encrypt.KeyProperties Java Examples

The following examples show how to use org.springframework.cloud.bootstrap.encrypt.KeyProperties. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CustomAuthorizationServerConfigurer.java    From spring-microservice-exam with MIT License 5 votes vote down vote up
@Autowired
public CustomAuthorizationServerConfigurer(RedisConnectionFactory redisConnectionFactory,
                                           DataSource dataSource,
                                           KeyProperties keyProperties) {
    this.redisConnectionFactory = redisConnectionFactory;
    this.dataSource = dataSource;
    this.keyProperties = keyProperties;
}
 
Example #2
Source File: OauthAuthorizationServerConfig.java    From codeway_service with GNU General Public License v3.0 4 votes vote down vote up
@Bean("keyProp")
public KeyProperties keyProperties(){
    return new KeyProperties();
}
 
Example #3
Source File: CustomAesEncryptor.java    From mPaaS with Apache License 2.0 4 votes vote down vote up
/**
 * 默认构造函数
 */
CustomAesEncryptor(KeyProperties props) {
    if (!StringUtils.isEmpty(props.getKey())) {
        encryptor = new AesEncryptProvider(props.getKey());
    }
}
 
Example #4
Source File: CustomEncryptionBootstrapConfiguration.java    From mPaaS with Apache License 2.0 4 votes vote down vote up
/**
 * 配置中心自定义aes加密器
 * @param keyProperties
 * @return
 */
@Bean
@Primary
public TextEncryptor getDefaultTextEncryptor(KeyProperties keyProperties) {
    return new CustomAesEncryptor(keyProperties);
}
 
Example #5
Source File: AuthJwtTokenStore.java    From microservices-platform with Apache License 2.0 4 votes vote down vote up
@Bean("keyProp")
public KeyProperties keyProperties() {
    return new KeyProperties();
}
 
Example #6
Source File: OauthAuthorizationServerConfig.java    From codeway_service with GNU General Public License v3.0 4 votes vote down vote up
@Bean("keyProp")
public KeyProperties keyProperties(){
    return new KeyProperties();
}