Default

Table of Contents
Home
Overall Architecture
Authentication
Authentication Managers
Security Policy
TicketRegistry
Testing
Protocols
Advanced Features
Tutorials and HOWTOs
Troubleshooting
Services Management
Extensions

Default TicketRegistry

The DefaultTicketRegistry is included automatically in the CAS server and is enabled by default. There are not that many configuration options for the Registry itself, as it relies on the defaults of the ConcurrentHashMap, which are sufficient for the majority of the people.

However, if one wants to tweak their registry for optimal performance, the DefaultTicketRegistry provides a few options. There is one additional constructor that takes the following arguments:

  • initialCapacity - the initial capacity. The implementation performs internal sizing to accommodate this many elements.
  • loadFactor - the load factor threshold, used to control resizing. Resizing may be performed when the average number of elements per bin exceeds this threshold.
  • concurrencyLevel - the estimated number of concurrently updating threads. The implementation performs internal sizing to try to accommodate this many threads.

It can be configured like

<bean id="ticketRegistry" class="org.jasig.cas.ticket.registry.DefaultTicketRegistry">
    <constructor-arg index="0" value="1000" />
    <constructor-arg index="1" value="1" />
    <constructor-arg index="2" value="16" />
</bean>
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.