@Override
    public boolean isExpired() {
        if (StringUtils.isBlank(this.expirationDate)) {
            return false;
        }
        val now = LocalDateTime.now(ZoneId.systemDefault());
        val expDate = DateTimeUtils.localDateTimeOf(this.expirationDate);
        LOGGER.debug("Service expiration date is [{}] while now is [{}]", expirationDate, now);
        return now.isEqual(expDate) || now.isAfter(expDate);
    }
This is {@link DefaultRegisteredServiceExpirationPolicy}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceExpirationPolicy.java