Class LoginResponse
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.auth.LoginResponse
-
public class LoginResponse extends Object
Response for the login request.
-
-
Field Summary
Fields Modifier and Type Field Description private StringaccessTokenAn access token for the account.private StringdeviceIdID of the logged-in device.private StringhomeServerDeprecated.clients should extract the server_name from user_id (by splitting at the first colon) if they require it.private StringuserIdThe fully-qualified Matrix ID that has been registered.private ServerDiscoveryResponsewellKnownOptional client configuration provided by the server.
-
Constructor Summary
Constructors Constructor Description LoginResponse()
-
Method Summary
Modifier and Type Method Description StringgetAccessToken()StringgetDeviceId()StringgetHomeServer()StringgetUserId()ServerDiscoveryResponsegetWellKnown()voidsetAccessToken(String accessToken)voidsetDeviceId(String deviceId)voidsetHomeServer(String homeServer)voidsetUserId(String userId)voidsetWellKnown(ServerDiscoveryResponse wellKnown)
-
-
-
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.
-
-
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)
-
getWellKnown
public ServerDiscoveryResponse getWellKnown()
-
setWellKnown
public void setWellKnown(ServerDiscoveryResponse wellKnown)
-
-