@@ -45,7 +45,7 @@ public enum CollectContextMode {
4545 PERIODIC_EXAMPLE ,
4646 }
4747
48- private String apikey ;
48+ private String sdkKey ;
4949 private Datasources datasources = Datasources .ALL ;
5050 private int initializationTimeoutSec = 10 ;
5151 private OnInitializationFailure onInitializationFailure = OnInitializationFailure .RAISE ;
@@ -72,7 +72,7 @@ public enum CollectContextMode {
7272 private ContextSetReadable globalContext ;
7373
7474 public Options () {
75- setApikey (
75+ setSdkKey (
7676 Optional
7777 .ofNullable (System .getenv ("REFORGE_BACKEND_SDK_KEY" ))
7878 .orElse (System .getenv ("PREFAB_API_KEY" ))
@@ -87,21 +87,21 @@ public boolean isLocalOnly() {
8787 return Datasources .LOCAL_ONLY == datasources ;
8888 }
8989
90- public String getApikey () {
91- return apikey ;
90+ public String getSdkKey () {
91+ return sdkKey ;
9292 }
9393
9494 /**
9595 * Sets the API key to be used to communicate with the Reforge APIs
96- * Can also be specified with env var `REFORGE_API_KEY `
97- * @param apikey the key
96+ * Can also be specified with env var `REFORGE_BACKEND_SDK_KEY `
97+ * @param sdkKey the key
9898 * @return Options
9999 */
100- public Options setApikey (String apikey ) {
101- if (apikey == null ) {
102- this .apikey = null ;
100+ public Options setSdkKey (String sdkKey ) {
101+ if (sdkKey == null ) {
102+ this .sdkKey = null ;
103103 } else {
104- this .apikey = apikey .trim ();
104+ this .sdkKey = sdkKey .trim ();
105105 }
106106 return this ;
107107 }
@@ -223,7 +223,7 @@ public Options setCollectEvaluationSummaries(boolean collectEvaluationSummaries)
223223 }
224224
225225 public String getApiKeyId () {
226- return getApikey ().split ("\\ -" )[0 ];
226+ return getSdkKey ().split ("\\ -" )[0 ];
227227 }
228228
229229 public Options setContextStore (ContextStore contextStore ) {
0 commit comments