File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,17 +20,17 @@ public class Optout extends App {
2020
2121 public Optout (String host , Integer port , String name ) {
2222 super (host , port , name );
23- this .optoutInternalApiKey = EnvUtil .getEnv (Const .Config .Core .OPTOUT_API_KEY , false );
23+ this .optoutInternalApiKey = EnvUtil .getEnv (Const .Config .Core .OPTOUT_INTERNAL_API_KEY , false );
2424 }
2525
2626 public Optout (String host , String name ) {
2727 super (host , null , name );
28- this .optoutInternalApiKey = EnvUtil .getEnv (Const .Config .Core .OPTOUT_API_KEY , false );
28+ this .optoutInternalApiKey = EnvUtil .getEnv (Const .Config .Core .OPTOUT_INTERNAL_API_KEY , false );
2929 }
3030
3131 private String getOptoutInternalApiKey () {
3232 if (optoutInternalApiKey == null || optoutInternalApiKey .isEmpty ()) {
33- throw new IllegalStateException ("Missing environment variable: " + Const .Config .Core .OPTOUT_API_KEY );
33+ throw new IllegalStateException ("Missing environment variable: " + Const .Config .Core .OPTOUT_INTERNAL_API_KEY );
3434 }
3535 return optoutInternalApiKey ;
3636 }
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ public static final class Config {
1313 public static final class Core {
1414 public static final String OPERATOR_API_KEY = "UID2_CORE_E2E_OPERATOR_API_KEY" ;
1515 public static final String OPTOUT_API_KEY = "UID2_CORE_E2E_OPTOUT_API_KEY" ;
16+ public static final String OPTOUT_INTERNAL_API_KEY = "UID2_CORE_E2E_OPTOUT_INTERNAL_API_KEY" ;
1617 public static final String CORE_URL = "UID2_CORE_E2E_CORE_URL" ;
1718 public static final String OPTOUT_URL = "UID2_CORE_E2E_OPTOUT_URL" ;
1819 }
You can’t perform that action at this time.
0 commit comments