Add @JsonIgnore to SingleUseObjectKeyModel's getExpiration()

Closes #31171

Signed-off-by: Johannes Knutsen <johannes@kodet.no>
This commit is contained in:
Johannes Knutsen 2024-07-09 20:31:16 +02:00 committed by Alexander Schwartz
parent ce195b81f8
commit b41f3599ea

View file

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