|
|
|
@ -4,6 +4,7 @@ import com.fr.config.ConfigContext;
|
|
|
|
|
import com.fr.config.DefaultConfiguration; |
|
|
|
|
import com.fr.config.holder.Conf; |
|
|
|
|
import com.fr.config.holder.factory.Holders; |
|
|
|
|
import com.fr.security.SecurityToolbox; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -68,11 +69,12 @@ public class RedisConnectionProxyConfig extends DefaultConfiguration {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getPassword() { |
|
|
|
|
return password.get(); |
|
|
|
|
String text = password.get(); |
|
|
|
|
return SecurityToolbox.decrypt(text); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setPassword(String password) { |
|
|
|
|
this.password.set(password); |
|
|
|
|
this.password.set(SecurityToolbox.encrypt(password)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getPrivateKeyPath() { |
|
|
|
|