The token cache entries that logout() removed: the ones that held the credentials of the session that it ended.
OptionalerrorWhy the logout request failed; set when userSession is failed.
What happened to the user session of the instance:
ended: AM ended the session and its token stopped working;none: the instance holds no user session (a service account, a token that a caller presented, or nothing),
so nothing was ended;kept: dispose() left the session alone, because it may be in use by another process (it came from the token
cache or went into it) or because this instance did not create it;failed: the logout request failed (reported by dispose(); logout() throws instead).
What
login.logout()andlogin.dispose()report.