Class MachineAuthDetails


  • public class MachineAuthDetails
    extends java.lang.Object
    Represents details required to complete a machine auth request.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBytesWritten()
      Gets the number of bytes written for the sentry file.
      EResult geteResult()
      Get the result of updating the machine auth.
      java.lang.String getFileName()
      Gets the filename of the sentry file that was written.
      int getFileSize()
      Gets the size of the sentry file.
      JobID getJobID()
      Gets the target Job ID for the request.
      int getLastError()
      Gets the last error that occurred while writing the sentry file, or 0 if no error occurred.
      int getOffset()
      Gets the offset within the sentry file that was written.
      OTPDetails getOneTimePassword()
      Gets the one-time-password details.
      byte[] getSentryFileHash()
      Gets the SHA-1 hash of the sentry file.
      void setBytesWritten​(int bytesWritten)
      Sets the number of bytes written for the sentry file.
      void seteResult​(EResult eResult)
      Set the result of updating the machine auth.
      void setFileName​(java.lang.String fileName)
      Sets the filename of the sentry file that was written.
      void setFileSize​(int fileSize)
      Sets the size of the sentry file.
      void setJobID​(JobID jobID)
      Sets the target Job ID for the request.
      void setLastError​(int lastError)
      Sets the last error that occurred while writing the sentry file, or 0 if no error occurred.
      void setOffset​(int offset)
      Sets the offset within the sentry file that was written.
      void setOneTimePassword​(OTPDetails oneTimePassword)
      Sets the one-time-password details.
      void setSentryFileHash​(byte[] sentryFileHash)
      Sets the SHA-1 hash of the sentry file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MachineAuthDetails

        public MachineAuthDetails()
    • Method Detail

      • 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 as EResult
      • 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.