@JsonIgnore
    public void neverExpire() {
        val expDate = getRecordDate().plusYears(YEARS_TO_KEEP_RECORD_AS_FOREVER).truncatedTo(ChronoUnit.SECONDS);
        val zonedExpDate = DateTimeUtils.dateOf(expDate);
        setExpirationDate(zonedExpDate);
    }
Set the expiration date to never expire the record.
support/cas-server-support-trusted-mfa-core/src/main/java/org/apereo/cas/trusted/authentication/api/MultifactorAuthenticationTrustRecord.java