@Override
    public ExpirationPolicy buildTicketExpirationPolicy() {
        val tgt = casProperties.getTicket().getTgt();
        if (tgt.getRememberMe().isEnabled()) {
            val policy = toRememberMeTicketExpirationPolicy();
            LOGGER.debug("Final effective time-to-live of remember-me expiration policy is [{}] seconds", policy.getTimeToLive());
            return policy;
        }
        val policy = toTicketGrantingTicketExpirationPolicy();
        LOGGER.debug("Final effective time-to-live of ticket-granting ticket expiration policy is [{}] seconds", policy.getTimeToLive());
        return policy;
    }
This is {@link TicketGrantingTicketExpirationPolicyBuilder}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/expiration/builder/TicketGrantingTicketExpirationPolicyBuilder.java