uniqueIdGenerators.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to Jasig under one or more contributor license
  4. agreements. See the NOTICE file distributed with this work
  5. for additional information regarding copyright ownership.
  6. Jasig licenses this file to you under the Apache License,
  7. Version 2.0 (the "License"); you may not use this file
  8. except in compliance with the License. You may obtain a
  9. copy of the License at the following location:
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <beans xmlns="http://www.springframework.org/schema/beans"
  19. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  20. xmlns:p="http://www.springframework.org/schema/p"
  21. xmlns:util="http://www.springframework.org/schema/util"
  22. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
  23. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">
  24. <description>
  25. Controls the generation of the unique identifiers for tickets. You most likely do not need to modify these. Though you may need to modify
  26. the SAML ticket id generator.
  27. </description>
  28. <!-- ID Generators -->
  29. <bean id="ticketGrantingTicketUniqueIdGenerator" class="org.jasig.cas.util.DefaultUniqueTicketIdGenerator">
  30. <constructor-arg
  31. index="0"
  32. type="int"
  33. value="50" />
  34. <constructor-arg
  35. index="1" value="${host.name}" />
  36. </bean>
  37. <bean id="serviceTicketUniqueIdGenerator" class="org.jasig.cas.util.DefaultUniqueTicketIdGenerator">
  38. <constructor-arg
  39. index="0"
  40. type="int"
  41. value="20" />
  42. <constructor-arg
  43. index="1" value="${host.name}" />
  44. </bean>
  45. <bean id="loginTicketUniqueIdGenerator" class="org.jasig.cas.util.DefaultUniqueTicketIdGenerator">
  46. <constructor-arg
  47. index="0"
  48. type="int"
  49. value="30" />
  50. </bean>
  51. <bean
  52. id="proxy20TicketUniqueIdGenerator"
  53. class="org.jasig.cas.util.DefaultUniqueTicketIdGenerator">
  54. <constructor-arg
  55. index="0"
  56. type="int"
  57. value="20" />
  58. <constructor-arg
  59. index="1" value="${host.name}" />
  60. </bean>
  61. <bean id="samlServiceTicketUniqueIdGenerator" class="org.jasig.cas.util.SamlCompliantUniqueTicketIdGenerator">
  62. <constructor-arg index="0" value="https://localhost:8443" />
  63. </bean>
  64. <util:map id="uniqueIdGeneratorsMap">
  65. <entry
  66. key="org.jasig.cas.authentication.principal.SimpleWebApplicationServiceImpl"
  67. value-ref="serviceTicketUniqueIdGenerator" />
  68. <entry
  69. key="org.jasig.cas.support.openid.authentication.principal.OpenIdService"
  70. value-ref="serviceTicketUniqueIdGenerator" />
  71. <entry
  72. key="org.jasig.cas.authentication.principal.SamlService"
  73. value-ref="samlServiceTicketUniqueIdGenerator" />
  74. <entry
  75. key="org.jasig.cas.authentication.principal.GoogleAccountsService"
  76. value-ref="serviceTicketUniqueIdGenerator" />
  77. </util:map>
  78. </beans>