Add @JsonIgnore to SingleUseObjectKeyModel's getExpiration()
Closes #31171 Signed-off-by: Johannes Knutsen <johannes@kodet.no>
This commit is contained in:
parent
ce195b81f8
commit
b41f3599ea
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue