mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-21 14:30:05 -06:00
Add @JsonIgnore to SingleUseObjectKeyModel's getExpiration()
Closes #31171 Signed-off-by: Johannes Knutsen <johannes@kodet.no>
This commit is contained in:
committed by
Alexander Schwartz
parent
b2b845d9f8
commit
f161b4e021
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user