public ExpirationPolicy toTicketExpirationPolicy() {
        val uma = casProperties.getAuthn().getOauth().getUma();
        return new HardTimeoutExpirationPolicy(Beans.newDuration(uma.getPermissionTicket().getMaxTimeToLiveInSeconds()).toSeconds());
    }
To ticket expiration policy.

@return the expiration policy
support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/ticket/permission/UmaPermissionTicketExpirationPolicyBuilder.java