interface the interface for which the returned avatar, see the discription of Portal.login on IMailAccount.
interfaces the interface(s) the returned avatar should implement, e.g. IMailAccount. See the description of Portal.login.