web/src/main/java/org/springframework/security/web/authentication/rememberme/AbstractRememberMeServices.java
protected Authentication createSuccessfulAuthentication(HttpServletRequest request,
			UserDetails user) {
		RememberMeAuthenticationToken auth = new RememberMeAuthenticationToken(key, user,
				authoritiesMapper.mapAuthorities(user.getAuthorities()));
		auth.setDetails(authenticationDetailsSource.buildDetails(request));
		return auth;
	}
protected Authentication createSuccessfulAuthentication(HttpServletRequest request,
			UserDetails user) {
		RememberMeAuthenticationToken auth = new RememberMeAuthenticationToken(key, user,
				authoritiesMapper.mapAuthorities(user.getAuthorities()));
		auth.setDetails(authenticationDetailsSource.buildDetails(request));
		return auth;
	}
protected Authentication createSuccessfulAuthentication ( HttpServletRequest request , UserDetails user ) { RememberMeAuthenticationToken auth = new RememberMeAuthenticationToken ( key , user , authoritiesMapper . mapAuthorities ( user . getAuthorities ( ) ) ) ; auth . setDetails ( authenticationDetailsSource . buildDetails ( request ) ) ; return auth ; }
Creates the final <tt>Authentication</tt> object returned from the
<tt>autoLogin</tt> method.
<p>
By default it will create a <tt>RememberMeAuthenticationToken</tt> instance.

@param request the original request. The configured
<tt>AuthenticationDetailsSource</tt> will use this to build the details property of
the returned object.
@param user the <tt>UserDetails</tt> loaded from the <tt>UserDetailsService</tt>.
This will be stored as the principal.

@return the <tt>Authentication</tt> for the remember-me authenticated user
Creates the final <tt > Authentication< / tt > object returned from the <tt > autoLogin< / tt > method . <p > By default it will create a <tt > RememberMeAuthenticationToken< / tt > instance .