Class LogOnDetails
- java.lang.Object
-
- in.dragonbra.javasteam.steam.handlers.steamuser.LogOnDetails
-
public class LogOnDetails extends java.lang.ObjectRepresents the details required to log into Steam3 as a user.
-
-
Constructor Summary
Constructors Constructor Description LogOnDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAccountID()Gets the account ID used for connecting clients when using the Console instance.longgetAccountInstance()Gets the account instance.java.lang.StringgetAuthCode()Gets the Steam Guard auth code used to login.java.lang.IntegergetCellID()Gets the CellID.java.lang.StringgetClientLanguage()Gets the client language.EOSTypegetClientOSType()Gets the client operating system type.java.lang.IntegergetLoginID()Gets the LoginID.java.lang.StringgetLoginKey()Gets the login key used to login.java.lang.StringgetPassword()Gets the password.byte[]getSentryFileHash()Gets the sentry file hash for this logon attempt, or null if no sentry file is available.java.lang.StringgetTwoFactorCode()Gets the 2-factor auth code used to login.java.lang.StringgetUsername()Gets the username.booleanisRequestSteam2Ticket()Gets a value indicating whether to request the Steam2 ticket.booleanisShouldRememberPassword()Gets the 'Should Remember Password' flag.voidsetAccountID(long accountID)Sets the account ID used for connecting clients when using the Console instance.voidsetAccountInstance(long accountInstance)Sets the account instance.voidsetAuthCode(java.lang.String authCode)Sets the Steam Guard auth code used to login.voidsetCellID(int cellID)Sets the CellID.voidsetClientLanguage(java.lang.String clientLanguage)Sets the client language.voidsetClientOSType(EOSType clientOSType)Sets the client operating system type.voidsetLoginID(java.lang.Integer loginID)Sets the LoginID.voidsetLoginKey(java.lang.String loginKey)Sets the login key used to login.voidsetPassword(java.lang.String password)Sets the password.voidsetRequestSteam2Ticket(boolean requestSteam2Ticket)Sets a value indicating whether to request the Steam2 ticket.voidsetSentryFileHash(byte[] sentryFileHash)Sets the sentry file hash for this logon attempt, or null if no sentry file is available.voidsetShouldRememberPassword(boolean shouldRememberPassword)Sets the 'Should Remember Password' flag.voidsetTwoFactorCode(java.lang.String twoFactorCode)Sets the 2-factor auth code used to login.voidsetUsername(java.lang.String username)Sets the username.
-
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
Gets the username.- Returns:
- the username.
-
setUsername
public void setUsername(java.lang.String username)
Sets the username.- Parameters:
username- the username.
-
getPassword
public java.lang.String getPassword()
Gets the password.- Returns:
- the password.
-
setPassword
public void setPassword(java.lang.String password)
Sets the password.- Parameters:
password- the password.
-
getCellID
public java.lang.Integer getCellID()
Gets the CellID.- Returns:
- the CellID.
-
setCellID
public void setCellID(int cellID)
Sets the CellID.- Parameters:
cellID- the CellID.
-
getLoginID
public java.lang.Integer getLoginID()
Gets the LoginID. This number is used for identifying logon session.- Returns:
- the LoginID.
-
setLoginID
public void setLoginID(java.lang.Integer loginID)
Sets the LoginID. This number is used for identifying logon session. The purpose of this field is to allow multiple sessions to the same steam account from the same machine. This is because Steam Network doesn't allow more than one session with the same LoginID to access given account at the same time from the same public IP. If you want to establish more than one active session to given account, you must make sure that every session (to that account) from the same public IP has a unique LoginID. By default, LoginID is automatically generated based on machine's primary bind address, which is the same for all sessions. Null value will cause this property to be automatically generated based on default behaviour. If in doubt, set this property to null.- Parameters:
loginID- the LoginID.
-
getAuthCode
public java.lang.String getAuthCode()
Gets the Steam Guard auth code used to login. This is the code sent to the user's email.- Returns:
- the auth code.
-
setAuthCode
public void setAuthCode(java.lang.String authCode)
Sets the Steam Guard auth code used to login. This is the code sent to the user's email.- Parameters:
authCode- the auth code.
-
getTwoFactorCode
public java.lang.String getTwoFactorCode()
Gets the 2-factor auth code used to login. This is the code that can be received from the authenticator apps.- Returns:
- the two-factor auth code.
-
setTwoFactorCode
public void setTwoFactorCode(java.lang.String twoFactorCode)
Sets the 2-factor auth code used to login. This is the code that can be received from the authenticator apps.- Parameters:
twoFactorCode- the two-factor auth code.
-
getLoginKey
public java.lang.String getLoginKey()
Gets the login key used to login. This is a key that has been received in a previous Steam session by aLoginKeyCallback.- Returns:
- the login key.
-
setLoginKey
public void setLoginKey(java.lang.String loginKey)
Sets the login key used to login. This is a key that has been received in a previous Steam session by aLoginKeyCallback.- Parameters:
loginKey- the login key.
-
isShouldRememberPassword
public boolean isShouldRememberPassword()
Gets the 'Should Remember Password' flag. This is used in combination with the login key andLoginKeyCallbackfor password-less login.- Returns:
- the 'Should Remember Password' flag.
-
setShouldRememberPassword
public void setShouldRememberPassword(boolean shouldRememberPassword)
Sets the 'Should Remember Password' flag. This is used in combination with the login key andLoginKeyCallbackfor password-less login.- Parameters:
shouldRememberPassword- the 'Should Remember Password' flag.
-
getSentryFileHash
public byte[] getSentryFileHash()
Gets the sentry file hash for this logon attempt, or null if no sentry file is available.- Returns:
- the sentry file hash.
-
setSentryFileHash
public void setSentryFileHash(byte[] sentryFileHash)
Sets the sentry file hash for this logon attempt, or null if no sentry file is available.- Parameters:
sentryFileHash- the sentry file hash.
-
getAccountInstance
public long getAccountInstance()
Gets the account instance. 1 for the PC instance or 2 for the Console (PS3) instance.- Returns:
- the account instance.
-
setAccountInstance
public void setAccountInstance(long accountInstance)
Sets the account instance. 1 for the PC instance or 2 for the Console (PS3) instance.- Parameters:
accountInstance- the account instance.
-
getAccountID
public long getAccountID()
Gets the account ID used for connecting clients when using the Console instance.- Returns:
- the account ID.
-
setAccountID
public void setAccountID(long accountID)
Sets the account ID used for connecting clients when using the Console instance.- Parameters:
accountID- the account ID.
-
isRequestSteam2Ticket
public boolean isRequestSteam2Ticket()
Gets a value indicating whether to request the Steam2 ticket. This is an optional request only needed for Steam2 content downloads.- Returns:
- true if the Steam2 ticket should be requested; otherwise, false.
-
setRequestSteam2Ticket
public void setRequestSteam2Ticket(boolean requestSteam2Ticket)
Sets a value indicating whether to request the Steam2 ticket. This is an optional request only needed for Steam2 content downloads.- Parameters:
requestSteam2Ticket- true if the Steam2 ticket should be requested; otherwise, false.
-
getClientOSType
public EOSType getClientOSType()
Gets the client operating system type.- Returns:
- the client operating system type.
-
setClientOSType
public void setClientOSType(EOSType clientOSType)
Sets the client operating system type.- Parameters:
clientOSType- the client operating system type.
-
getClientLanguage
public java.lang.String getClientLanguage()
Gets the client language.- Returns:
- the client language.
-
setClientLanguage
public void setClientLanguage(java.lang.String clientLanguage)
Sets the client language.- Parameters:
clientLanguage- the client language.
-
-