Package tss.tpm

Class TPM2_ClearControl_REQUEST

  • All Implemented Interfaces:
    TpmMarshaller

    public class TPM2_ClearControl_REQUEST
    extends ReqStructure
    TPM2_ClearControl() disables and enables the execution of TPM2_Clear().
    • Field Detail

      • auth

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

        public byte disable
        YES if the disableOwnerClear flag is to be SET, NO if the flag is to be CLEAR.
    • Constructor Detail

      • TPM2_ClearControl_REQUEST

        public TPM2_ClearControl_REQUEST()
      • TPM2_ClearControl_REQUEST

        public TPM2_ClearControl_REQUEST​(TPM_HANDLE _auth,
                                         byte _disable)
        Parameters:
        _auth - TPM_RH_LOCKOUT or TPM_RH_PLATFORM+{PP} Auth Handle: 1 Auth Role: USER
        _disable - YES if the disableOwnerClear flag is to be SET, NO if the flag is to be CLEAR.
    • Method Detail

      • toTpm

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

        public static TPM2_ClearControl_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_ClearControl_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_ClearControl_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