Package tss.tpm

Class CommandHeader

    • Field Detail

      • Tag

        public TPM_ST Tag
        Command tag (sessions, or no sessions)
      • CommandSize

        public int CommandSize
        Total command buffer length
      • CommandCode

        public TPM_CC CommandCode
        Command code
    • Constructor Detail

      • CommandHeader

        public CommandHeader()
      • CommandHeader

        public CommandHeader​(TPM_ST _Tag,
                             int _CommandSize,
                             TPM_CC _CommandCode)
        Parameters:
        _Tag - Command tag (sessions, or no sessions)
        _CommandSize - Total command buffer length
        _CommandCode - Command code
    • Method Detail

      • toTpm

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

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

        public static CommandHeader 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 CommandHeader 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