use of org.apereo.cas.web.support.TGCCookieRetrievingCookieGenerator in project cas by apereo.
the class CasCookieConfiguration method ticketGrantingTicketCookieGenerator.
@Autowired
@Bean
@RefreshScope
public CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator(@Qualifier("cookieCipherExecutor") final CipherExecutor cipherExecutor) {
final TicketGrantingCookieProperties tgc = casProperties.getTgc();
final int rememberMeMaxAge = Long.valueOf(tgc.getRememberMeMaxAge()).intValue();
return new TGCCookieRetrievingCookieGenerator(cookieValueManager(cipherExecutor), tgc.getName(), tgc.getPath(), tgc.getDomain(), rememberMeMaxAge, tgc.isSecure(), tgc.getMaxAge());
}
use of org.apereo.cas.web.support.TGCCookieRetrievingCookieGenerator in project cas by apereo.
the class CasCookieConfiguration method ticketGrantingTicketCookieGenerator.
@Bean
@RefreshScope
public CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator() {
final TicketGrantingCookieProperties tgc = casProperties.getTgc();
final int rememberMeMaxAge = (int) Beans.newDuration(tgc.getRememberMeMaxAge()).getSeconds();
return new TGCCookieRetrievingCookieGenerator(cookieValueManager(), tgc.getName(), tgc.getPath(), tgc.getDomain(), rememberMeMaxAge, tgc.isSecure(), tgc.getMaxAge(), tgc.isHttpOnly());
}
Aggregations