com.genexus.db.driver.ExternalProviderHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxcloudstorage-common Show documentation
Show all versions of gxcloudstorage-common Show documentation
Core classes for the runtime used by Java and Android apps generated with GeneXus
The newest version!
package com.genexus.db.driver;
import com.genexus.util.Encryption;
import com.genexus.util.GXService;
public class ExternalProviderHelper {
public static String getServicePropertyValue(GXService s, String propName, boolean isSecure){
String value = s.getProperties().get(propName);
if (value != null){
if (isSecure){
value = Encryption.decrypt64(value);
}
}
return value;
}
public static String getEnvironmentVariable(String name, boolean required) throws Exception{
String value = System.getenv(name);
if ((value == null || value.length() == 0) && required){
throw new Exception("Parameter " + name + " is required");
}
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy