@@ -51,7 +51,6 @@ public final class AxonFlowConfig {
5151 private final String endpoint ;
5252 private final String clientId ;
5353 private final String clientSecret ;
54- private final String licenseKey ;
5554 private final Mode mode ;
5655 private final Duration timeout ;
5756 private final boolean debug ;
@@ -64,7 +63,6 @@ private AxonFlowConfig(Builder builder) {
6463 this .endpoint = normalizeUrl (builder .endpoint != null ? builder .endpoint : DEFAULT_ENDPOINT );
6564 this .clientId = builder .clientId ;
6665 this .clientSecret = builder .clientSecret ;
67- this .licenseKey = builder .licenseKey ;
6866 this .mode = builder .mode != null ? builder .mode : Mode .PRODUCTION ;
6967 this .timeout = builder .timeout != null ? builder .timeout : DEFAULT_TIMEOUT ;
7068 this .debug = builder .debug ;
@@ -87,13 +85,13 @@ private void validate() {
8785 /**
8886 * Checks if credentials are configured.
8987 *
90- * <p>Returns true if either a license key or client credentials are set.
88+ * <p>Returns true if client credentials (clientId and clientSecret) are set.
9189 *
9290 * @return true if credentials are available
9391 */
9492 public boolean hasCredentials () {
95- return ( licenseKey != null && !licenseKey .isEmpty ()) ||
96- ( clientId != null && clientSecret != null && !clientSecret .isEmpty () );
93+ return clientId != null && !clientId .isEmpty () &&
94+ clientSecret != null && !clientSecret .isEmpty ();
9795 }
9896
9997 private String normalizeUrl (String url ) {
@@ -122,7 +120,6 @@ public boolean isLocalhost() {
122120 * <li>AXONFLOW_AGENT_URL - The endpoint URL (kept for backwards compatibility)</li>
123121 * <li>AXONFLOW_CLIENT_ID - The client ID</li>
124122 * <li>AXONFLOW_CLIENT_SECRET - The client secret</li>
125- * <li>AXONFLOW_LICENSE_KEY - The license key</li>
126123 * <li>AXONFLOW_MODE - Operating mode (production/sandbox)</li>
127124 * <li>AXONFLOW_TIMEOUT_SECONDS - Request timeout in seconds</li>
128125 * <li>AXONFLOW_DEBUG - Enable debug mode (true/false)</li>
@@ -149,11 +146,6 @@ public static AxonFlowConfig fromEnvironment() {
149146 builder .clientSecret (clientSecret );
150147 }
151148
152- String licenseKey = System .getenv ("AXONFLOW_LICENSE_KEY" );
153- if (licenseKey != null && !licenseKey .isEmpty ()) {
154- builder .licenseKey (licenseKey );
155- }
156-
157149 String modeStr = System .getenv ("AXONFLOW_MODE" );
158150 if (modeStr != null && !modeStr .isEmpty ()) {
159151 builder .mode (Mode .fromValue (modeStr ));
@@ -188,10 +180,6 @@ public String getClientSecret() {
188180 return clientSecret ;
189181 }
190182
191- public String getLicenseKey () {
192- return licenseKey ;
193- }
194-
195183 public Mode getMode () {
196184 return mode ;
197185 }
@@ -233,13 +221,12 @@ public boolean equals(Object o) {
233221 insecureSkipVerify == that .insecureSkipVerify &&
234222 Objects .equals (endpoint , that .endpoint ) &&
235223 Objects .equals (clientId , that .clientId ) &&
236- Objects .equals (licenseKey , that .licenseKey ) &&
237224 mode == that .mode ;
238225 }
239226
240227 @ Override
241228 public int hashCode () {
242- return Objects .hash (endpoint , clientId , licenseKey , mode , debug , insecureSkipVerify );
229+ return Objects .hash (endpoint , clientId , mode , debug , insecureSkipVerify );
243230 }
244231
245232 @ Override
@@ -260,7 +247,6 @@ public static final class Builder {
260247 private String endpoint ;
261248 private String clientId ;
262249 private String clientSecret ;
263- private String licenseKey ;
264250 private Mode mode ;
265251 private Duration timeout ;
266252 private boolean debug ;
@@ -321,17 +307,6 @@ public Builder clientSecret(String clientSecret) {
321307 return this ;
322308 }
323309
324- /**
325- * Sets the license key for SaaS authentication.
326- *
327- * @param licenseKey the license key
328- * @return this builder
329- */
330- public Builder licenseKey (String licenseKey ) {
331- this .licenseKey = licenseKey ;
332- return this ;
333- }
334-
335310 /**
336311 * Sets the operating mode.
337312 *
0 commit comments