List of usage examples for org.springframework.security.core Authentication getDetails
Object getDetails();
From source file:ubic.gemma.security.authentication.UserManagerImpl.java
protected Authentication createNewAuthentication(Authentication currentAuth, @SuppressWarnings("unused") String newPassword) { UserDetails user = loadUserByUsername(currentAuth.getName()); UsernamePasswordAuthenticationToken newAuthentication = new UsernamePasswordAuthenticationToken(user, user.getPassword(), user.getAuthorities()); newAuthentication.setDetails(currentAuth.getDetails()); return newAuthentication; }