Class LoginResponse


  • public class LoginResponse
    extends Object
    Response for the login request.
    • Field Detail

      • userId

        private String userId
        The fully-qualified Matrix ID that has been registered.
      • accessToken

        private String accessToken
        An access token for the account. This access token can then be used to authorize other requests.
      • homeServer

        @Deprecated
        private String homeServer
        Deprecated.
        clients should extract the server_name from user_id (by splitting at the first colon) if they require it. Note also that homeserver is not spelt this way.
        The hostname of the homeserver on which the account has been registered.
      • wellKnown

        private ServerDiscoveryResponse wellKnown
        Optional client configuration provided by the server. If present, clients SHOULD use the provided object to reconfigure themselves, optionally validating the URLs within. This object takes the same form as the one returned from .well-known autodiscovery.
      • deviceId

        private String deviceId
        ID of the logged-in device. Will be the same as the corresponding parameter in the request, if one was specified.
    • Constructor Detail

      • LoginResponse

        public LoginResponse()
    • Method Detail

      • getUserId

        public String getUserId()
      • setUserId

        public void setUserId​(String userId)
      • getAccessToken

        public String getAccessToken()
      • setAccessToken

        public void setAccessToken​(String accessToken)
      • getHomeServer

        public String getHomeServer()
      • setHomeServer

        public void setHomeServer​(String homeServer)
      • getDeviceId

        public String getDeviceId()
      • setDeviceId

        public void setDeviceId​(String deviceId)