Migrate from Acegi Security 1.0.x to Spring Security 5.0
ProprietaryMigrates Acegi Security 1.0.x directly to Spring Security 5.0. This recipe handles dependency changes, type renames, XML configuration updates, web.xml filter migration, and adds TODO comments for password encoders that require manual migration.
io. moderne. java. spring. security. MigrateAcegiToSpringSecurity_5_0mod run . --recipe= io. moderne. java. spring. security. MigrateAcegiToSpringSecurity_5_0Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Change Gradle or Maven dependency
org.acegisecurity:acegi-security - Change Gradle or Maven dependency
org.acegisecurity:acegi-security-cas - Change Gradle or Maven dependency
org.acegisecurity:acegi-security-tiger - Add Gradle or Maven dependency
org.springframework.security:spring-security-web:5.0.x - Add Gradle or Maven dependency
org.springframework.security:spring-security-ldap:5.0.x - Change type
org.acegisecurity.providers.UsernamePasswordAuthenticationTokentoorg.springframework.security.authentication.UsernamePasswordAuthenticationToken - Change type
org.acegisecurity.Authenticationtoorg.springframework.security.core.Authentication - Change type
org.acegisecurity.AuthenticationExceptiontoorg.springframework.security.core.AuthenticationException - Change type
GrantedAuthorityImpltoSimpleGrantedAuthority - Change type
org.acegisecurity.AuthenticationServiceExceptiontoorg.springframework.security.authentication.AuthenticationServiceException - Change type
org.acegisecurity.context.SecurityContextHoldertoorg.springframework.security.core.context.SecurityContextHolder - Change type
org.acegisecurity.AuthenticationManagertoorg.springframework.security.authentication.AuthenticationManager - Change type
org.acegisecurity.providers.AuthenticationProvidertoorg.springframework.security.authentication.AuthenticationProvider - Change type
org.acegisecurity.context.SecurityContexttoorg.springframework.security.core.context.SecurityContext - Change type
org.acegisecurity.GrantedAuthoritytoorg.springframework.security.core.GrantedAuthority - Change type
org.acegisecurity.userdetails.UserDetailstoorg.springframework.security.core.userdetails.UserDetails - Change type
org.acegisecurity.userdetails.UserDetailsServicetoorg.springframework.security.core.userdetails.UserDetailsService - Change type
org.acegisecurity.ui.AuthenticationEntryPointtoorg.springframework.security.web.AuthenticationEntryPoint - Change type
org.acegisecurity.ui.rememberme.RememberMeServicestoorg.springframework.security.web.authentication.RememberMeServices - Change type
BasicProcessingFilterEntryPointtoBasicAuthenticationEntryPoint - Change type
DigestProcessingFiltertoDigestAuthenticationFilter - Change type
FilterToBeanProxytoDelegatingFilterProxy - Change type
AuthenticationProcessingFiltertoUsernamePasswordAuthenticationFilter - Change type
AuthenticationProcessingFilterEntryPointtoLoginUrlAuthenticationEntryPoint - Change type
BasicProcessingFiltertoBasicAuthenticationFilter - Change type
DigestProcessingFilterEntryPointtoDigestAuthenticationEntryPoint - Change type
RememberMeProcessingFiltertoRememberMeAuthenticationFilter - Change type
org.acegisecurity.ui.rememberme.TokenBasedRememberMeServicestoorg.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices - Change type
AnonymousProcessingFiltertoAnonymousAuthenticationFilter - Change type
org.acegisecurity.ui.ExceptionTranslationFiltertoorg.springframework.security.web.access.ExceptionTranslationFilter - Change type
org.acegisecurity.intercept.web.FilterSecurityInterceptortoorg.springframework.security.web.access.intercept.FilterSecurityInterceptor - Change type
SecurityEnforcementFiltertoFilterSecurityInterceptor - Change type
org.acegisecurity.util.FilterChainProxytoorg.springframework.security.web.FilterChainProxy - Change type
org.acegisecurity.ui.logout.LogoutFiltertoorg.springframework.security.web.authentication.logout.LogoutFilter - Change type
org.acegisecurity.ui.logout.SecurityContextLogoutHandlertoorg.springframework.security.web.authentication.logout.SecurityContextLogoutHandler - Change type
org.acegisecurity.ui.logout.LogoutHandlertoorg.springframework.security.web.authentication.logout.LogoutHandler - Change type
org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulatortoorg.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator - Change type
org.acegisecurity.userdetails.ldap.LdapUserDetailstoorg.springframework.security.ldap.userdetails.LdapUserDetails - Change type
InitialDirContextFactorytoDefaultSpringSecurityContextSource - Change type
DefaultInitialDirContextFactorytoDefaultSpringSecurityContextSource - Change type
org.acegisecurity.providers.ldap.LdapAuthenticationProvidertoorg.springframework.security.ldap.authentication.LdapAuthenticationProvider - Change type
org.acegisecurity.providers.ldap.authenticator.BindAuthenticatortoorg.springframework.security.ldap.authentication.BindAuthenticator - Change type
org.acegisecurity.providers.ldap.authenticator.PasswordComparisonAuthenticatortoorg.springframework.security.ldap.authentication.PasswordComparisonAuthenticator - Change type
org.acegisecurity.providers.ldap.authenticator.LdapAuthenticatortoorg.springframework.security.ldap.authentication.LdapAuthenticator - Change type
org.acegisecurity.providers.ldap.LdapAuthoritiesPopulatortoorg.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator - Change method name
org.springframework.security.ldap.DefaultSpringSecurityContextSource setManagerDn(String)tosetUserDn - Change method name
org.springframework.security.ldap.DefaultSpringSecurityContextSource setManagerPassword(String)tosetPassword - Change method name
org.springframework.security.ldap.DefaultSpringSecurityContextSource newInitialDirContext(String, String)togetContext - Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change type
org.acegisecurity.vote.AffirmativeBasedtoorg.springframework.security.access.vote.AffirmativeBased - Change type
org.acegisecurity.vote.ConsensusBasedtoorg.springframework.security.access.vote.ConsensusBased - Change type
org.acegisecurity.vote.UnanimousBasedtoorg.springframework.security.access.vote.UnanimousBased - Change type
org.acegisecurity.vote.RoleVotertoorg.springframework.security.access.vote.RoleVoter - Change type
org.acegisecurity.vote.AuthenticatedVotertoorg.springframework.security.access.vote.AuthenticatedVoter - Change type
org.acegisecurity.vote.AccessDecisionVotertoorg.springframework.security.access.AccessDecisionVoter - Change type
org.acegisecurity.vote.AccessDecisionManagertoorg.springframework.security.access.AccessDecisionManager - Change type
JdbcDaoImpltoJdbcUserDetailsManager - Change type
InMemoryDaoImpltoInMemoryUserDetailsManager - Change type
org.acegisecurity.providers.dao.DaoAuthenticationProvidertoorg.springframework.security.authentication.dao.DaoAuthenticationProvider - Change type
org.acegisecurity.providers.anonymous.AnonymousAuthenticationProvidertoorg.springframework.security.authentication.AnonymousAuthenticationProvider - Change type
org.acegisecurity.providers.anonymous.AnonymousAuthenticationTokentoorg.springframework.security.authentication.AnonymousAuthenticationToken - Change type
org.acegisecurity.providers.rememberme.RememberMeAuthenticationProvidertoorg.springframework.security.authentication.RememberMeAuthenticationProvider - Change type
org.acegisecurity.providers.rememberme.RememberMeAuthenticationTokentoorg.springframework.security.authentication.RememberMeAuthenticationToken - Change type
org.acegisecurity.providers.ProviderManagertoorg.springframework.security.authentication.ProviderManager - Change type
org.acegisecurity.AccessDeniedExceptiontoorg.springframework.security.access.AccessDeniedException - Change type
org.acegisecurity.BadCredentialsExceptiontoorg.springframework.security.authentication.BadCredentialsException - Change type
org.acegisecurity.DisabledExceptiontoorg.springframework.security.authentication.DisabledException - Change type
org.acegisecurity.LockedExceptiontoorg.springframework.security.authentication.LockedException - Change type
org.acegisecurity.AccountExpiredExceptiontoorg.springframework.security.authentication.AccountExpiredException - Change type
org.acegisecurity.CredentialsExpiredExceptiontoorg.springframework.security.authentication.CredentialsExpiredException - Change type
org.acegisecurity.InsufficientAuthenticationExceptiontoorg.springframework.security.authentication.InsufficientAuthenticationException - Change type
org.acegisecurity.providers.encoding.PasswordEncodertoorg.springframework.security.crypto.password.PasswordEncoder - Change type
org.acegisecurity.userdetails.Usertoorg.springframework.security.core.userdetails.User - Change type
org.acegisecurity.userdetails.UsernameNotFoundExceptiontoorg.springframework.security.core.userdetails.UsernameNotFoundException - Change type
org.acegisecurity.userdetails.UserDetailsCheckertoorg.springframework.security.core.userdetails.UserDetailsChecker - Change type
org.acegisecurity.intercept.AbstractSecurityInterceptortoorg.springframework.security.access.intercept.AbstractSecurityInterceptor - Change type
ObjectDefinitionSourcetoSecurityMetadataSource - Change type
org.acegisecurity.ConfigAttributetoorg.springframework.security.access.ConfigAttribute - Change type
ConfigAttributeDefinitiontoConfigAttribute - Change type
org.acegisecurity.SecurityConfigtoorg.springframework.security.access.SecurityConfig - Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Change XML attribute
- Add a comment to an XML tag
- Add a comment to an XML tag
- Add a comment to an XML tag
- Change XML tag value
- Change XML tag value
- Change Gradle or Maven dependency
net.sourceforge.jsf-comp:acegi-jsf - Change XML attribute of a specific resource version
- Change XML tag value
- Change XML tag value
- Change XML tag value