upgrade-04-05.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <html>
  2. <head>
  3. <title>Acegi Security - Upgrading from version 0.4 to 0.5</title>
  4. </head>
  5. <body>
  6. <h1>Upgrading from 0.4 to 0.5</h1>
  7. <p>The following should help most casual users of the project update their
  8. applications:
  9. <ul>
  10. <li>All filters are now loaded via FilterToBeanProxy. The FilterToBeanProxy
  11. obtains the filter from a Spring application context via the
  12. WebApplicationContextUtils.getApplicationContext() method. Refer to the
  13. reference documentation to see the new configuration of filters.</li>
  14. <li>SecurityEnforcementFilter now requires an AuthenticationEntryPoint
  15. and PortResolver. Refer to the reference documentation to see the
  16. alternatives AuthenticationEntryPoint implementations available. Simply
  17. use the PortResolverImpl for the PortResolver requirement.</li>
  18. <li>Any of your login or login failure pages that previously referred to
  19. AuthenticationProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY
  20. should now use
  21. net.sf.acegisecurity.ui.AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY.</li>
  22. <li>DaoAuthenticationProvider no longer provides setters for case sensitivity
  23. handling. The respective AuthenticationDao implementations should decide
  24. whether or not to return User instances reflecting the exact case of the
  25. requested username. The new PlaintextPasswordEncoder offers a setter for
  26. ignoring the password case (defaults to require exact case matches).</li>
  27. <li>DaoAuthenticationProvider now provides caching. Successful authentications
  28. return DaoAuthenticationTokens. You must set the mandatory "key" property
  29. on DaoAuthenticationProvider so these tokens can be validated. You may
  30. also wish to change the "refreshTokenInterval" property from the default
  31. of 60,000 milliseconds.</li>
  32. <li>If you're using container adapters, please refer to the reference
  33. documentation as additional JARs are now required in your container
  34. classloader.</li>
  35. <li>Whilst not really a change needed to your program, if you're using
  36. Acegi Security please consider joining the acegisecurity-developer mailing
  37. list. This is currently the best way to keep informed about the project's
  38. status and provide feedback in design discussions. You can join at
  39. https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer.
  40. Please continue using the Spring Users mailing list for general support.</li>
  41. </ul>
  42. <p>
  43. There are also lots of new features you might wish to consider for your
  44. projects. These include CAS integration, pluggable password encoders
  45. (such as MD5 and SHA), along with pluggable salt sources. We hope you find
  46. the new features useful in your projects.
  47. </body>
  48. </html>