Purpose of PreAuthenticatedAuthenticationToken in Spring Security? : <p>I am authenticating a User using <a href="http://docs.spring.io/spring-security/site/docs/3.2.2.RELEASE/apidocs/org/springframework/security/authentication/UsernamePasswordAuthenticationToken.html" rel="noreferrer">UsernamePasswordAuthenticationToken</a> in SpringBoot.</p>

<p>I am generating a token using <a href="https://github.com/jwtk/jjwt" rel="noreferrer">JJWT</a> for that User and returning it back.</p>

<p>Now the User uses that token to send any further requests to me. After decrypting the token should I be using <a href="http://docs.spring.io/spring-security/site/docs/3.2.2.RELEASE/apidocs/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationToken.html" rel="noreferrer">PreAuthenticatedAuthenticationToken</a> and set it to <code>SecurityContextHolder.getContext().setAuthentication()</code>?</p>

<p>What is the purpose of <code>PreAuthenticatedAuthenticationToken</code>?</p>
