Class SteamUser
- java.lang.Object
-
- in.dragonbra.javasteam.handlers.ClientMsgHandler
-
- in.dragonbra.javasteam.steam.handlers.steamuser.SteamUser
-
public class SteamUser extends ClientMsgHandler
This handler handles all user log on/log off related actions and callbacks.
-
-
Field Summary
-
Fields inherited from class in.dragonbra.javasteam.handlers.ClientMsgHandler
client
-
-
Constructor Summary
Constructors Constructor Description SteamUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptNewLoginKey(LoginKeyCallback callback)Accepts the new Login Key provided by aLoginKeyCallback.SteamIDgetSteamID()voidhandleMsg(IPacketMsg packetMsg)Handles a client message.voidlogOff()Informs the Steam servers that this client wishes to log off from the network.voidlogOn(LogOnDetails details)Logs the client into the Steam3 network.voidlogOnAnonymous()Logs the client into the Steam3 network as an anonymous user.voidlogOnAnonymous(AnonymousLogOnDetails details)Logs the client into the Steam3 network as an anonymous user.JobIDrequestWebAPIUserNonce()Requests a new WebAPI authentication user nonce.voidsendMachineAuthResponse(MachineAuthDetails details)Sends a machine auth response.-
Methods inherited from class in.dragonbra.javasteam.handlers.ClientMsgHandler
getClient, isExpectDisconnection, setExpectDisconnection, setup
-
-
-
-
Method Detail
-
logOn
public void logOn(LogOnDetails details)
Logs the client into the Steam3 network. The client should already have been connected at this point. Results are returned in aLoggedOnCallback.- Parameters:
details- The details to use for logging on.
-
logOnAnonymous
public void logOnAnonymous()
Logs the client into the Steam3 network as an anonymous user. The client should already have been connected at this point. Results are returned in aLoggedOnCallback.
-
logOnAnonymous
public void logOnAnonymous(AnonymousLogOnDetails details)
Logs the client into the Steam3 network as an anonymous user. The client should already have been connected at this point. Results are returned in aLoggedOnCallback.- Parameters:
details- The details to use for logging on.
-
logOff
public void logOff()
Informs the Steam servers that this client wishes to log off from the network. The Steam server will disconnect the client, and aDisconnectedCallbackwill be posted.
-
sendMachineAuthResponse
public void sendMachineAuthResponse(MachineAuthDetails details)
Sends a machine auth response. This should normally be used in response to aUpdateMachineAuthCallback.- Parameters:
details- The details pertaining to the response.
-
requestWebAPIUserNonce
public JobID requestWebAPIUserNonce()
Requests a new WebAPI authentication user nonce. Results are returned in aWebAPIUserNonceCallback.- Returns:
- The Job ID of the request. This can be used to find the appropriate
WebAPIUserNonceCallback.
-
acceptNewLoginKey
public void acceptNewLoginKey(LoginKeyCallback callback)
Accepts the new Login Key provided by aLoginKeyCallback.- Parameters:
callback- The callback containing the new Login Key.
-
handleMsg
public void handleMsg(IPacketMsg packetMsg)
Description copied from class:ClientMsgHandlerHandles a client message. This should not be called directly.- Specified by:
handleMsgin classClientMsgHandler- Parameters:
packetMsg- The packet message that contains the data.
-
getSteamID
public SteamID getSteamID()
-
-