All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nitorcreations.willow.utils.ObfustcatorPropertySource Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package com.nitorcreations.willow.utils;

import java.io.IOException;

public class ObfustcatorPropertySource implements PropertySource {
  private final Obfuscator obfuscator;
  public ObfustcatorPropertySource() throws IOException {
    this(new Obfuscator());
  }
  public ObfustcatorPropertySource(Obfuscator obfuscator) {
    this.obfuscator = obfuscator;
  }
  @Override
  public String getProperty(String key) {
    String ret = obfuscator.decrypt(key);
    if (ret == null) {
      return key;
    }
    return ret;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy