public Access buildAccess(UserEntity user) {
byte[] tokenSecret = authSecrets.buildToken(user.getUserSecret());
TokenInfo token = buildToken("" + user.getId(), tokenSecret);
Access access = new Access();
// response.access.serviceCatalog = serviceMapper.getServices(userInfo,
// project);
access.token = new Token();
access.token.expires = token.expiration;
access.token.id = tokenService.encodeToken(token);