Class MachineAuthDetails
- java.lang.Object
-
- in.dragonbra.javasteam.steam.handlers.steamuser.MachineAuthDetails
-
public class MachineAuthDetails extends java.lang.ObjectRepresents details required to complete a machine auth request.
-
-
Constructor Summary
Constructors Constructor Description MachineAuthDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBytesWritten()Gets the number of bytes written for the sentry file.EResultgeteResult()Get the result of updating the machine auth.java.lang.StringgetFileName()Gets the filename of the sentry file that was written.intgetFileSize()Gets the size of the sentry file.JobIDgetJobID()Gets the target Job ID for the request.intgetLastError()Gets the last error that occurred while writing the sentry file, or 0 if no error occurred.intgetOffset()Gets the offset within the sentry file that was written.OTPDetailsgetOneTimePassword()Gets the one-time-password details.byte[]getSentryFileHash()Gets the SHA-1 hash of the sentry file.voidsetBytesWritten(int bytesWritten)Sets the number of bytes written for the sentry file.voidseteResult(EResult eResult)Set the result of updating the machine auth.voidsetFileName(java.lang.String fileName)Sets the filename of the sentry file that was written.voidsetFileSize(int fileSize)Sets the size of the sentry file.voidsetJobID(JobID jobID)Sets the target Job ID for the request.voidsetLastError(int lastError)Sets the last error that occurred while writing the sentry file, or 0 if no error occurred.voidsetOffset(int offset)Sets the offset within the sentry file that was written.voidsetOneTimePassword(OTPDetails oneTimePassword)Sets the one-time-password details.voidsetSentryFileHash(byte[] sentryFileHash)Sets the SHA-1 hash of the sentry file.
-
-
-
Method Detail
-
getJobID
public JobID getJobID()
Gets the target Job ID for the request. This is provided in theCallbackfor aUpdateMachineAuthCallback.- Returns:
- the jobID.
-
setJobID
public void setJobID(JobID jobID)
Sets the target Job ID for the request. This is provided in theCallbackfor aUpdateMachineAuthCallback.- Parameters:
jobID- the jobID.
-
geteResult
public EResult geteResult()
Get the result of updating the machine auth.- Returns:
- the result as
EResult
-
seteResult
public void seteResult(EResult eResult)
Set the result of updating the machine auth.- Parameters:
eResult- the result asEResult
-
getBytesWritten
public int getBytesWritten()
Gets the number of bytes written for the sentry file.- Returns:
- the number of bytes written.
-
setBytesWritten
public void setBytesWritten(int bytesWritten)
Sets the number of bytes written for the sentry file.- Parameters:
bytesWritten- the number of bytes written.
-
getOffset
public int getOffset()
Gets the offset within the sentry file that was written.- Returns:
- the offset.
-
setOffset
public void setOffset(int offset)
Sets the offset within the sentry file that was written.- Parameters:
offset- the offset.
-
getFileName
public java.lang.String getFileName()
Gets the filename of the sentry file that was written.- Returns:
- the name of the sentry file.
-
setFileName
public void setFileName(java.lang.String fileName)
Sets the filename of the sentry file that was written.- Parameters:
fileName- the name of the sentry file.
-
getFileSize
public int getFileSize()
Gets the size of the sentry file.- Returns:
- the size of the sentry file.
-
setFileSize
public void setFileSize(int fileSize)
Sets the size of the sentry file.- Parameters:
fileSize- the size of the sentry file.
-
getLastError
public int getLastError()
Gets the last error that occurred while writing the sentry file, or 0 if no error occurred.- Returns:
- the last error.
-
setLastError
public void setLastError(int lastError)
Sets the last error that occurred while writing the sentry file, or 0 if no error occurred.- Parameters:
lastError- the last error.
-
getSentryFileHash
public byte[] getSentryFileHash()
Gets the SHA-1 hash of the sentry file.- Returns:
- the sentry file hash.
-
setSentryFileHash
public void setSentryFileHash(byte[] sentryFileHash)
Sets the SHA-1 hash of the sentry file.- Parameters:
sentryFileHash- the sentry file hash.
-
getOneTimePassword
public OTPDetails getOneTimePassword()
Gets the one-time-password details.- Returns:
- the one time password details.
-
setOneTimePassword
public void setOneTimePassword(OTPDetails oneTimePassword)
Sets the one-time-password details.- Parameters:
oneTimePassword- the one time password details.
-
-