"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "support/cas-server-support-ws-sts/src/main/java/org/apereo/cas/config/CasWsSecurityTokenTicketCatalogConfiguration.java" between
cas-6.0.4.tar.gz and cas-6.0.5.tar.gz

About: CAS (Central Authentication Service) is an authentication system (providing single sign-on service).

CasWsSecurityTokenTicketCatalogConfiguration.java  (cas-6.0.4):CasWsSecurityTokenTicketCatalogConfiguration.java  (cas-6.0.5)
skipping to change at line 14 skipping to change at line 14
import org.apereo.cas.ticket.BaseTicketCatalogConfigurer; import org.apereo.cas.ticket.BaseTicketCatalogConfigurer;
import org.apereo.cas.ticket.DefaultSecurityTokenTicket; import org.apereo.cas.ticket.DefaultSecurityTokenTicket;
import org.apereo.cas.ticket.SecurityTokenTicket; import org.apereo.cas.ticket.SecurityTokenTicket;
import org.apereo.cas.ticket.TicketCatalog; import org.apereo.cas.ticket.TicketCatalog;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import lombok.val; import lombok.val;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties ; import org.springframework.boot.context.properties.EnableConfigurationProperties ;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
/** /**
* This is {@link CasWsSecurityTokenTicketCatalogConfiguration}. * This is {@link CasWsSecurityTokenTicketCatalogConfiguration}.
* *
* @author Misagh Moayyed * @author Misagh Moayyed
* @since 5.1.0 * @since 5.1.0
*/ */
@Configuration("casWsSecurityTokenTicketCatalogConfiguration") @Configuration("casWsSecurityTokenTicketCatalogConfiguration")
@EnableConfigurationProperties(CasConfigurationProperties.class) @EnableConfigurationProperties(CasConfigurationProperties.class)
@Slf4j @Slf4j
public class CasWsSecurityTokenTicketCatalogConfiguration extends BaseTicketCata logConfigurer { public class CasWsSecurityTokenTicketCatalogConfiguration extends BaseTicketCata logConfigurer {
@Autowired @Autowired
private CasConfigurationProperties casProperties; private CasConfigurationProperties casProperties;
@Override @Override
public void configureTicketCatalog(final TicketCatalog plan) { public void configureTicketCatalog(final TicketCatalog plan) {
LOGGER.debug("Registering core WS security token ticket definitions...") ; LOGGER.debug("Registering core WS security token ticket definitions...") ;
val definition = buildTicketDefinition(plan, SecurityTokenTicket.PREFIX, DefaultSecurityTokenTicket.class); val definition = buildTicketDefinition(plan, SecurityTokenTicket.PREFIX, DefaultSecurityTokenTicket.class, Ordered.HIGHEST_PRECEDENCE);
definition.getProperties().setStorageName("wsSecurityTokenTicketsCache") ; definition.getProperties().setStorageName("wsSecurityTokenTicketsCache") ;
definition.getProperties().setStorageTimeout(casProperties.getTicket().g etTgt().getMaxTimeToLiveInSeconds()); definition.getProperties().setStorageTimeout(casProperties.getTicket().g etTgt().getMaxTimeToLiveInSeconds());
registerTicketDefinition(plan, definition); registerTicketDefinition(plan, definition);
} }
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)