use of org.apereo.cas.ticket.support.RememberMeDelegatingExpirationPolicy in project cas by apereo.
the class CasCoreTicketsConfiguration method grantingTicketExpirationPolicy.
@ConditionalOnMissingBean(name = "grantingTicketExpirationPolicy")
@Bean
public ExpirationPolicy grantingTicketExpirationPolicy() {
final TicketGrantingTicketProperties tgt = casProperties.getTicket().getTgt();
if (tgt.getRememberMe().isEnabled()) {
final RememberMeDelegatingExpirationPolicy p = new RememberMeDelegatingExpirationPolicy();
p.setRememberMeExpirationPolicy(new HardTimeoutExpirationPolicy(tgt.getRememberMe().getTimeToKillInSeconds()));
p.setSessionExpirationPolicy(buildTicketGrantingTicketExpirationPolicy());
return p;
}
return buildTicketGrantingTicketExpirationPolicy();
}
Aggregations