Package org.keycloak.models.map.common
Class ExpirationUtils
java.lang.Object
org.keycloak.models.map.common.ExpirationUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isExpired
(ExpirableEntity entity, boolean allowInfiniteValues) Checks whether theentity
is expiredstatic boolean
isNotExpired
(Object entity)
-
Constructor Details
-
ExpirationUtils
public ExpirationUtils()
-
-
Method Details
-
isExpired
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
-