Package tss.tpm

Class TPM2_AC_GetCapability_REQUEST

  • All Implemented Interfaces:
    TpmMarshaller

    public class TPM2_AC_GetCapability_REQUEST
    extends ReqStructure
    The purpose of this command is to obtain information about an Attached Component referenced by an AC handle.
    • Field Detail

      • ac

        public TPM_HANDLE ac
        Handle indicating the Attached Component Auth Index: None
      • capability

        public TPM_AT capability
        Starting info type
      • count

        public int count
        Maximum number of values to return
    • Constructor Detail

      • TPM2_AC_GetCapability_REQUEST

        public TPM2_AC_GetCapability_REQUEST()
      • TPM2_AC_GetCapability_REQUEST

        public TPM2_AC_GetCapability_REQUEST​(TPM_HANDLE _ac,
                                             TPM_AT _capability,
                                             int _count)
        Parameters:
        _ac - Handle indicating the Attached Component Auth Index: None
        _capability - Starting info type
        _count - Maximum number of values to return
    • Method Detail

      • toTpm

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

        public static TPM2_AC_GetCapability_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_AC_GetCapability_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_AC_GetCapability_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