applicationContext.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
  3. <beans>
  4. <!-- Message source for this context, loaded from localized "messages_xx" files -->
  5. <bean
  6. id="messageSource"
  7. class="org.springframework.context.support.ResourceBundleMessageSource">
  8. <property
  9. name="basename"
  10. value="messages" />
  11. </bean>
  12. <!-- ID Generators -->
  13. <bean
  14. id="ticketGrantingTicketUniqueIdGenerator"
  15. class="org.jasig.cas.util.DefaultUniqueTicketIdGenerator">
  16. <constructor-arg
  17. index="0"
  18. value="50" />
  19. </bean>
  20. <bean
  21. id="httpClient"
  22. class="org.jasig.cas.util.HttpClient3FactoryBean">
  23. <property
  24. name="soTimeout"
  25. value="5000" />
  26. <property
  27. name="connectionManagerTimeout"
  28. value="5000" />
  29. <property
  30. name="connectionTimeout"
  31. value="5000" />
  32. <property
  33. name="defaultMaxConnectionsPerHost"
  34. value="50" />
  35. <property
  36. name="maxTotalConnections"
  37. value="50" />
  38. </bean>
  39. <bean
  40. id="serviceTicketUniqueIdGenerator"
  41. class="org.jasig.cas.util.DefaultUniqueTicketIdGenerator">
  42. <constructor-arg
  43. index="0"
  44. value="20" />
  45. </bean>
  46. <!-- Expiration policies -->
  47. <bean
  48. id="serviceTicketExpirationPolicy"
  49. class="org.jasig.cas.ticket.support.MultiTimeUseOrTimeoutExpirationPolicy">
  50. <!-- This argument is the number of times that a ticket can be used before its considered expired. -->
  51. <constructor-arg
  52. index="0"
  53. value="1" />
  54. <!-- This argument is the time a ticket can exist before its considered expired. -->
  55. <constructor-arg
  56. index="1"
  57. value="300000" />
  58. </bean>
  59. <bean
  60. id="grantingTicketExpirationPolicy"
  61. class="org.jasig.cas.ticket.support.TimeoutExpirationPolicy">
  62. <!-- This argument is the time a ticket can exist before its considered expired. -->
  63. <constructor-arg
  64. index="0"
  65. value="7200000" />
  66. </bean>
  67. <!-- CentralAuthenticationService -->
  68. <bean
  69. id="centralAuthenticationService"
  70. class="org.jasig.cas.CentralAuthenticationServiceImpl">
  71. <property
  72. name="ticketGrantingTicketExpirationPolicy"
  73. ref="grantingTicketExpirationPolicy" />
  74. <property
  75. name="serviceTicketExpirationPolicy"
  76. ref="serviceTicketExpirationPolicy" />
  77. <property
  78. name="authenticationManager"
  79. ref="authenticationManager" />
  80. <property
  81. name="ticketGrantingTicketUniqueTicketIdGenerator"
  82. ref="ticketGrantingTicketUniqueIdGenerator" />
  83. <property
  84. name="serviceTicketUniqueTicketIdGenerator"
  85. ref="serviceTicketUniqueIdGenerator" />
  86. <property
  87. name="ticketRegistry"
  88. ref="ticketRegistry" />
  89. </bean>
  90. <bean
  91. id="proxy10Handler"
  92. class="org.jasig.cas.ticket.proxy.support.Cas10ProxyHandler" />
  93. <bean
  94. id="proxy20Handler"
  95. class="org.jasig.cas.ticket.proxy.support.Cas20ProxyHandler">
  96. <property
  97. name="httpClient"
  98. ref="httpClient" />
  99. </bean>
  100. <!-- Ticket Registry -->
  101. <bean
  102. id="ticketRegistry"
  103. class="org.jasig.cas.ticket.registry.DefaultTicketRegistry" />
  104. <!--Quartz -->
  105. <!-- TICKET REGISTRY CLEANER -->
  106. <bean
  107. id="ticketRegistryCleaner"
  108. class="org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner">
  109. <property
  110. name="ticketRegistry"
  111. ref="ticketRegistry" />
  112. </bean>
  113. <bean id="jobDetailTicketRegistryCleaner" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  114. <property
  115. name="targetObject"
  116. ref="ticketRegistryCleaner" />
  117. <property
  118. name="targetMethod"
  119. value="clean" />
  120. </bean>
  121. <bean
  122. id="triggerJobDetailTicketRegistryCleaner"
  123. class="org.springframework.scheduling.quartz.SimpleTriggerBean">
  124. <property
  125. name="jobDetail"
  126. ref="jobDetailTicketRegistryCleaner" />
  127. <!-- How long after the application is started before we start attempting to clean out the registry. -->
  128. <property
  129. name="startDelay"
  130. value="20000" />
  131. <!-- How often the cleaner should be run to clean out the ticket registry. -->
  132. <property
  133. name="repeatInterval"
  134. value="5000000" />
  135. </bean>
  136. <bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  137. <property name="triggers">
  138. <list>
  139. <ref
  140. local="triggerJobDetailTicketRegistryCleaner" />
  141. </list>
  142. </property>
  143. </bean>
  144. <!-- ADVISORS -->
  145. <bean
  146. id="advisorAutoProxyCreator"
  147. class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator" />
  148. </beans>