public ExpirationPolicy toTicketExpirationPolicy() {
        val timeToKillInSeconds = Beans.newDuration(casProperties.getTicket().getSt().getTimeToKillInSeconds()).toSeconds();
        return new SamlArtifactTicketExpirationPolicy(timeToKillInSeconds);
    }
To ticket expiration policy.

@return the expiration policy
support/cas-server-support-saml-idp-ticket/src/main/java/org/apereo/cas/ticket/artifact/SamlArtifactTicketExpirationPolicyBuilder.java