mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
Add @JsonIgnore to SingleUseObjectKeyModel's getExpiration()
Closes #31171 Signed-off-by: Johannes Knutsen <johannes@kodet.no>
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user