public ExpirationPolicy toTicketExpirationPolicy() {
        val timeout = Beans.newDuration(casProperties.getAuthn().getOidc().getIdToken().getMaxTimeToLiveInSeconds());
        return new HardTimeoutExpirationPolicy(timeout.toSeconds());
    }
To ticket expiration policy.

@return the expiration policy
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenExpirationPolicyBuilder.java