boolean isEnabled = ftpUser.getEnabled();
GrantedAuthority[] authorities = new GrantedAuthority[0];
boolean accountNonExpired = true;
boolean credentialsNonExpired = true;
boolean accountNonLocked = true;
UserDetails userDetails = new org.springframework.security.userdetails.User(username,
password, isEnabled, accountNonExpired, credentialsNonExpired, accountNonLocked,
authorities);
return userDetails;
}