Package tss.tpm

Class TPM2_Load_REQUEST

  • All Implemented Interfaces:
    TpmMarshaller

    public class TPM2_Load_REQUEST
    extends ReqStructure
    This command is used to load objects into the TPM. This command is used when both a TPM2B_PUBLIC and TPM2B_PRIVATE are to be loaded. If only a TPM2B_PUBLIC is to be loaded, the TPM2_LoadExternal command is used.
    • Field Detail

      • parentHandle

        public TPM_HANDLE parentHandle
        TPM handle of parent key; shall not be a reserved handle Auth Index: 1 Auth Role: USER
      • inPrivate

        public TPM2B_PRIVATE inPrivate
        The private portion of the object
      • inPublic

        public TPMT_PUBLIC inPublic
        The public portion of the object
    • Constructor Detail

      • TPM2_Load_REQUEST

        public TPM2_Load_REQUEST()
      • TPM2_Load_REQUEST

        public TPM2_Load_REQUEST​(TPM_HANDLE _parentHandle,
                                 TPM2B_PRIVATE _inPrivate,
                                 TPMT_PUBLIC _inPublic)
        Parameters:
        _parentHandle - TPM handle of parent key; shall not be a reserved handle Auth Index: 1 Auth Role: USER
        _inPrivate - The private portion of the object
        _inPublic - The public portion of the object
    • Method Detail

      • toTpm

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

        public static TPM2_Load_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_Load_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_Load_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