Class SteamUser


  • public class SteamUser
    extends ClientMsgHandler
    This handler handles all user log on/log off related actions and callbacks.
    • Constructor Detail

      • SteamUser

        public SteamUser()
    • 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 a LoggedOnCallback.
        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 a LoggedOnCallback.
      • 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 a LoggedOnCallback.
        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 a DisconnectedCallback will be posted.
      • sendMachineAuthResponse

        public void sendMachineAuthResponse​(MachineAuthDetails details)
        Sends a machine auth response. This should normally be used in response to a UpdateMachineAuthCallback.
        Parameters:
        details - The details pertaining to the response.
      • requestWebAPIUserNonce

        public JobID requestWebAPIUserNonce()
        Requests a new WebAPI authentication user nonce. Results are returned in a WebAPIUserNonceCallback.
        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 a LoginKeyCallback.
        Parameters:
        callback - The callback containing the new Login Key.
      • handleMsg

        public void handleMsg​(IPacketMsg packetMsg)
        Description copied from class: ClientMsgHandler
        Handles a client message. This should not be called directly.
        Specified by:
        handleMsg in class ClientMsgHandler
        Parameters:
        packetMsg - The packet message that contains the data.
      • getSteamID

        public SteamID getSteamID()