Package tss

Class CmdStructure

  • All Implemented Interfaces:
    TpmMarshaller
    Direct Known Subclasses:
    ReqStructure, RespStructure

    public class CmdStructure
    extends TpmStructure
    Base class for custom (not TPM 2.0 spec defined) auto-generated classes representing a TPM command or response parameters and handles, if any. These data structures differ from the spec-defined ones derived directly from the TpmStructure class in that their handle fields are not marshaled by their toTpm() and initFrom() methods, but rather are acceesed and manipulated via an interface defined by this structs and its derivatives ReqStructure and RespStructure.
    • Constructor Detail

      • CmdStructure

        public CmdStructure()
    • Method Detail

      • numHandles

        public int numHandles()
        Returns:
        Number of TPM handles contained (as fields) in this data structure
      • sessEncInfo

        public SessEncInfo sessEncInfo()
        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.