title: Change username in spring security when logged in
body: <p>I want to change username while this user logged in system. I implemented my own crypt algorithm and cannot get real password to make a new authentication and put it in </p>
  
  <pre><code>Authentication authentication = new UsernamePasswordAuthenticationToken(principal, credentials);
  </code></pre>