The method is nearly of the right form, but Norm suggested passing a parameter. In order to pass a parameter, the method must accept one, as in:

public void storeToken( String token )