Package org.keycloak.models.map.common
Class ExpirationUtils
java.lang.Object
org.keycloak.models.map.common.ExpirationUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisExpired(ExpirableEntity entity, boolean allowInfiniteValues) Checks whether theentityis expiredstatic booleanisNotExpired(Object entity)
-
Constructor Details
-
ExpirationUtils
public ExpirationUtils()
-
-
Method Details
-
isExpired
Checks whether theentityis expired- Parameters:
entity- to checkallowInfiniteValues- sets how null values are interpreted, if true entity with expiration equal tonullis interpreted as never expiring entity, if false entities withnullexpiration are interpreted as expired entities- Returns:
- true if the
entityis expired (expiration time is in the past or now), false otherwise
-
isNotExpired
-