code: public void init(String username, Credentials credentials) {
          this.credentials = credentials;
          setIdentifier(username.toLowerCase());
      }
docs: Initializes this AuthenticatedUser using the given username and
  credentials.
  
  @param username
  The username of the user that was authenticated.
  
  @param credentials
  The credentials provided when this user was authenticated.