From b41f3599ea051e21ac0d20042c4b93f09a2a141f Mon Sep 17 00:00:00 2001 From: Johannes Knutsen Date: Tue, 9 Jul 2024 20:31:16 +0200 Subject: [PATCH] Add @JsonIgnore to SingleUseObjectKeyModel's getExpiration() Closes #31171 Signed-off-by: Johannes Knutsen --- .../main/java/org/keycloak/models/SingleUseObjectKeyModel.java | 2 ++ 1 file changed, 2 insertions(+) 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(); }