code: @Transactional
  	public void rotateUserAccessKey(final int id)
  	{
  		final UserEntity account = getById(id);
  
  		if (account != null)
  		{
  			// Set the secondary token to the old primary token
  			account.setAccessKeySecondary(account.getAccessKey());
  
  			// Now regenerate the primary token
  			account.setAccessKey(SimpleId.alphanumeric(UserManagerBearerToken.PREFIX, 100));
  
  			update(account);
  		}
  		else
  		{
  			throw new IllegalArgumentException("No such user: " + id);
  		}
  	}
docs: Rotate the primary access key -> secondary access key, dropping the old secondary access key and generating a new primary access key
  
  @param id