SpringSource/spring-security — pull request #14 by leleuj (2012-07-06 18:57:33+00:00)
Title: SEC-1987 & SEC-1986

SEC-1987:
- I create the RememberMeAware interface with the isRemember() method
- I make the RememberMeAuthenticationToken class implement this interface with a final isRemember() method which always returns true
- I change the isRememberMe() method behaviour of the AuthenticationTrustResolverImpl class to test if the authentication is an instance of the RememberMeAware interface and in this case, return true if the isRemember() method returns true too. This test is made after the "old" ones I keep for backward compatibility reasons
- I make the TestingAuthenticationToken class implement the RememberMeAware interface for testing
- I update the AuthenticationTrustResolverImplTests class to test the RememberMeAware implementation.

SEC-1986:
- I update the CasAuthenticationProvider class with rememberMeAttributeName and also the CasAuthenticationToken
- I add a new commence method with a forceRenew parameter in the CasAuthenticationEntryPoint class
- I add the CasRememberMeAccessDeniedHandler class to handle CAS remember-me authentication when access is denied
- I update associated unit tests (AbstractStatelessTicketCacheTests, CasAuthenticationProviderTests, CasAuthenticationTokenTests, CasAuthenticationEntryPointTests)
- I configure CAS server to support remember-me mode
- I update CAS sample to add integration tests regarding remember-me (CasSampleRememberMeTests)