@Override public Token save(Token token) { System.out.println("Saved token: " + token); token.setId(token.getId() + "-saved"); return token; }
@Override public Token findByUserId(String userId) { System.out.println("Getting new token for ... '" + userId + "'"); Token t = new Token(); t.setId(UUID.randomUUID().toString()); t.setUserId(userId); t.setCreatedAt(new Date()); return t; }