diff --git a/server-spi/src/main/java/org/keycloak/models/SingleUseObjectKeyModel.java b/server-spi/src/main/java/org/keycloak/models/SingleUseObjectKeyModel.java index 1e7d3532b1..ef5e5b48d8 100644 --- a/server-spi/src/main/java/org/keycloak/models/SingleUseObjectKeyModel.java +++ b/server-spi/src/main/java/org/keycloak/models/SingleUseObjectKeyModel.java @@ -16,6 +16,7 @@ */ package org.keycloak.models; +import com.fasterxml.jackson.annotation.JsonIgnore; import org.keycloak.common.util.Base64; import java.nio.charset.StandardCharsets; import java.util.UUID; @@ -45,6 +46,7 @@ public interface SingleUseObjectKeyModel { * @deprecated int will overflow with values after 2038. Use {@link #getExp()} instead. */ @Deprecated + @JsonIgnore default int getExpiration() { return getExp().intValue(); }