Package org.keycloak.models.map.common
Class ExpirationUtils
- java.lang.Object
-
- org.keycloak.models.map.common.ExpirationUtils
-
public class ExpirationUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ExpirationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isExpired(ExpirableEntity entity, boolean allowInfiniteValues)
Checks whether theentity
is expiredstatic boolean
isNotExpired(Object entity)
-
-
-
Method Detail
-
isExpired
public static boolean isExpired(ExpirableEntity entity, boolean allowInfiniteValues)
Checks whether theentity
is expired- Parameters:
entity
- to checkallowInfiniteValues
- sets how null values are interpreted, if true entity with expiration equal tonull
is interpreted as never expiring entity, if false entities withnull
expiration are interpreted as expired entities- Returns:
- true if the
entity
is expired (expiration time is in the past or now), false otherwise
-
isNotExpired
public static boolean isNotExpired(Object entity)
-
-