Package tss.tpm

Class TPM2_ClockRateAdjust_REQUEST

  • All Implemented Interfaces:
    TpmMarshaller

    public class TPM2_ClockRateAdjust_REQUEST
    extends ReqStructure
    This command adjusts the rate of advance of Clock and Time to provide a better approximation to real time.
    • Field Detail

      • auth

        public TPM_HANDLE auth
        TPM_RH_OWNER or TPM_RH_PLATFORM+{PP} Auth Handle: 1 Auth Role: USER
      • rateAdjust

        public TPM_CLOCK_ADJUST rateAdjust
        Adjustment to current Clock update rate
    • Constructor Detail

      • TPM2_ClockRateAdjust_REQUEST

        public TPM2_ClockRateAdjust_REQUEST()
      • TPM2_ClockRateAdjust_REQUEST

        public TPM2_ClockRateAdjust_REQUEST​(TPM_HANDLE _auth,
                                            TPM_CLOCK_ADJUST _rateAdjust)
        Parameters:
        _auth - TPM_RH_OWNER or TPM_RH_PLATFORM+{PP} Auth Handle: 1 Auth Role: USER
        _rateAdjust - Adjustment to current Clock update rate
    • Method Detail

      • toTpm

        public byte[] toTpm()
        Deprecated.
        Returns:
        Wire (marshaled) representation of this object
      • fromBytes

        public static TPM2_ClockRateAdjust_REQUEST fromBytes​(byte[] byteBuf)
        Static marshaling helper
        Parameters:
        byteBuf - Wire representation of the object
        Returns:
        New object constructed from its wire representation
      • fromTpm

        public static TPM2_ClockRateAdjust_REQUEST fromTpm​(byte[] byteBuf)
        Deprecated.
        Use fromBytes(byte[]) instead
        Parameters:
        byteBuf - Wire representation of the object
        Returns:
        New object constructed from its wire representation
      • fromTpm

        public static TPM2_ClockRateAdjust_REQUEST fromTpm​(TpmBuffer buf)
        Static marshaling helper
        Parameters:
        buf - Wire representation of the object
        Returns:
        New object constructed from its wire representation
      • toStringInternal

        public void toStringInternal​(TpmStructurePrinter _p,
                                     int d)
        Description copied from class: TpmStructure
        Serialize this object to the structure printer
        Overrides:
        toStringInternal in class TpmStructure
        Parameters:
        _p - The structure accumulator
        d - The data to serialize
      • numHandles

        public int numHandles()
        Overrides:
        numHandles in class CmdStructure
        Returns:
        Number of TPM handles contained (as fields) in this data structure
      • numAuthHandles

        public int numAuthHandles()
        Overrides:
        numAuthHandles in class ReqStructure
        Returns:
        Number of authorization TPM handles contained in this data structure
      • getHandles

        public TPM_HANDLE[] getHandles()
        Overrides:
        getHandles in class ReqStructure
        Returns:
        An array of TPM handles contained in this TPM request data structure