Package tss.tpm

Class TPMS_AUTH_COMMAND

  • All Implemented Interfaces:
    TpmMarshaller

    public class TPMS_AUTH_COMMAND
    extends TpmStructure
    This is the format used for each of the authorizations in the session area of a command.
    • Field Detail

      • sessionHandle

        public TPM_HANDLE sessionHandle
        The session handle
      • nonce

        public byte[] nonce
        The session nonce, may be the Empty Buffer
      • sessionAttributes

        public TPMA_SESSION sessionAttributes
        The session attributes
      • hmac

        public byte[] hmac
        Either an HMAC, a password, or an EmptyAuth
    • Constructor Detail

      • TPMS_AUTH_COMMAND

        public TPMS_AUTH_COMMAND()
      • TPMS_AUTH_COMMAND

        public TPMS_AUTH_COMMAND​(TPM_HANDLE _sessionHandle,
                                 byte[] _nonce,
                                 TPMA_SESSION _sessionAttributes,
                                 byte[] _hmac)
        Parameters:
        _sessionHandle - The session handle
        _nonce - The session nonce, may be the Empty Buffer
        _sessionAttributes - The session attributes
        _hmac - Either an HMAC, a password, or an EmptyAuth
    • Method Detail

      • toTpm

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

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

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