class TokenAuthentication extends AbstractAuthenticationToken {

    public static TokenAuthentication createAuthenticated(String username, String token) {
        final TokenAuthentication out = new TokenAuthentication(username, token);
        out.setAuthenticated(true);
        return out;
    }

    public  TokenAuthentication(String token);
    public  TokenAuthentication(String username, String token);

}