Skip to content

Commit 8bdd402

Browse files
committed
Add expiration for air gapped licenses.
FusionAuth/fusionauth-issues#1667
1 parent dbbcba3 commit 8bdd402

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/main/java/io/fusionauth/domain/reactor/ReactorStatus.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package io.fusionauth.domain.reactor;
1717

18+
import java.time.LocalDate;
1819
import java.util.Objects;
1920

2021
import com.inversoft.json.JacksonConstructor;
@@ -40,6 +41,8 @@ public class ReactorStatus {
4041

4142
public ReactorFeatureStatus entityManagement = ReactorFeatureStatus.UNKNOWN;
4243

44+
public LocalDate expiration;
45+
4346
public boolean licensed;
4447

4548
public ReactorFeatureStatus scimServer = ReactorFeatureStatus.UNKNOWN;
@@ -59,6 +62,7 @@ public ReactorStatus(ReactorStatus other) {
5962
breachedPasswordDetection = other.breachedPasswordDetection;
6063
connectors = other.connectors;
6164
entityManagement = other.entityManagement;
65+
expiration = other.expiration;
6266
licensed = other.licensed;
6367
scimServer = other.scimServer;
6468
threatDetection = other.threatDetection;
@@ -73,15 +77,16 @@ public boolean equals(Object o) {
7377
return false;
7478
}
7579
ReactorStatus that = (ReactorStatus) o;
76-
return advancedIdentityProviders == that.advancedIdentityProviders &&
80+
return licensed == that.licensed &&
81+
advancedIdentityProviders == that.advancedIdentityProviders &&
7782
advancedLambdas == that.advancedLambdas &&
7883
advancedMultiFactorAuthentication == that.advancedMultiFactorAuthentication &&
7984
advancedRegistration == that.advancedRegistration &&
8085
applicationThemes == that.applicationThemes &&
8186
breachedPasswordDetection == that.breachedPasswordDetection &&
8287
connectors == that.connectors &&
8388
entityManagement == that.entityManagement &&
84-
licensed == that.licensed &&
89+
Objects.equals(expiration, that.expiration) &&
8590
scimServer == that.scimServer &&
8691
threatDetection == that.threatDetection;
8792
}
@@ -96,6 +101,7 @@ public int hashCode() {
96101
breachedPasswordDetection,
97102
connectors,
98103
entityManagement,
104+
expiration,
99105
licensed,
100106
scimServer,
101107
threatDetection);

0 commit comments

Comments
 (0)