Package tss.tpm

Class TPM2_LoadExternal_REQUEST

  • All Implemented Interfaces:
    TpmMarshaller

    public class TPM2_LoadExternal_REQUEST
    extends ReqStructure
    This command is used to load an object that is not a Protected Object into the TPM. The command allows loading of a public area or both a public and sensitive area.
    • Field Detail

      • inPrivate

        public TPMT_SENSITIVE inPrivate
        The sensitive portion of the object (optional)
      • inPublic

        public TPMT_PUBLIC inPublic
        The public portion of the object
      • hierarchy

        public TPM_HANDLE hierarchy
        Hierarchy with which the object area is associated
    • Constructor Detail

      • TPM2_LoadExternal_REQUEST

        public TPM2_LoadExternal_REQUEST()
      • TPM2_LoadExternal_REQUEST

        public TPM2_LoadExternal_REQUEST​(TPMT_SENSITIVE _inPrivate,
                                         TPMT_PUBLIC _inPublic,
                                         TPM_HANDLE _hierarchy)
        Parameters:
        _inPrivate - The sensitive portion of the object (optional)
        _inPublic - The public portion of the object
        _hierarchy - Hierarchy with which the object area is associated
    • Method Detail

      • toTpm

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

        public static TPM2_LoadExternal_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_LoadExternal_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_LoadExternal_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
      • sessEncInfo

        public SessEncInfo sessEncInfo()
        Overrides:
        sessEncInfo in class CmdStructure
        Returns:
        Non-zero size info of the encryptable command/response parameter if session based encryption can be applied to this object (i.e. its first non-handle field is marshaled in size-prefixed form). Otherwise returns zero initialized struct.