Package tss.tpm
Class TPM2_SetCommandCodeAuditStatus_REQUEST
- java.lang.Object
-
- tss.TpmStructure
-
- tss.CmdStructure
-
- tss.ReqStructure
-
- tss.tpm.TPM2_SetCommandCodeAuditStatus_REQUEST
-
- All Implemented Interfaces:
TpmMarshaller
public class TPM2_SetCommandCodeAuditStatus_REQUEST extends ReqStructure
This command may be used by the Privacy Administrator or platform to change the audit status of a command or to set the hash algorithm used for the audit digest, but not both at the same time.
-
-
Field Summary
Fields Modifier and Type Field Description TPM_ALG_ID
auditAlg
Hash algorithm for the audit digest; if TPM_ALG_NULL, then the hash is not changedTPM_HANDLE
auth
TPM_RH_OWNER or TPM_RH_PLATFORM+{PP} Auth Index: 1 Auth Role: USERTPM_CC[]
clearList
List of commands that will no longer be auditedTPM_CC[]
setList
List of commands that will be added to those that will be audited
-
Constructor Summary
Constructors Constructor Description TPM2_SetCommandCodeAuditStatus_REQUEST()
TPM2_SetCommandCodeAuditStatus_REQUEST(TPM_HANDLE _auth, TPM_ALG_ID _auditAlg, TPM_CC[] _setList, TPM_CC[] _clearList)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TPM2_SetCommandCodeAuditStatus_REQUEST
fromBytes(byte[] byteBuf)
Static marshaling helperstatic TPM2_SetCommandCodeAuditStatus_REQUEST
fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
insteadstatic TPM2_SetCommandCodeAuditStatus_REQUEST
fromTpm(TpmBuffer buf)
Static marshaling helperTPM_HANDLE[]
getHandles()
void
initFromTpm(TpmBuffer buf)
TpmMarshaller methodint
numAuthHandles()
int
numHandles()
String
toString()
void
toStringInternal(TpmStructurePrinter _p, int d)
Serialize this object to the structure printerbyte[]
toTpm()
Deprecated.UseTpmStructure.toBytes()
insteadvoid
toTpm(TpmBuffer buf)
TpmMarshaller method-
Methods inherited from class tss.ReqStructure
typeName
-
Methods inherited from class tss.CmdStructure
sessEncInfo
-
Methods inherited from class tss.TpmStructure
equals, hashCode, toBytes
-
-
-
-
Field Detail
-
auth
public TPM_HANDLE auth
TPM_RH_OWNER or TPM_RH_PLATFORM+{PP} Auth Index: 1 Auth Role: USER
-
auditAlg
public TPM_ALG_ID auditAlg
Hash algorithm for the audit digest; if TPM_ALG_NULL, then the hash is not changed
-
setList
public TPM_CC[] setList
List of commands that will be added to those that will be audited
-
clearList
public TPM_CC[] clearList
List of commands that will no longer be audited
-
-
Constructor Detail
-
TPM2_SetCommandCodeAuditStatus_REQUEST
public TPM2_SetCommandCodeAuditStatus_REQUEST()
-
TPM2_SetCommandCodeAuditStatus_REQUEST
public TPM2_SetCommandCodeAuditStatus_REQUEST(TPM_HANDLE _auth, TPM_ALG_ID _auditAlg, TPM_CC[] _setList, TPM_CC[] _clearList)
- Parameters:
_auth
- TPM_RH_OWNER or TPM_RH_PLATFORM+{PP} Auth Index: 1 Auth Role: USER_auditAlg
- Hash algorithm for the audit digest; if TPM_ALG_NULL, then the hash is not changed_setList
- List of commands that will be added to those that will be audited_clearList
- List of commands that will no longer be audited
-
-
Method Detail
-
toTpm
public void toTpm(TpmBuffer buf)
TpmMarshaller method- Specified by:
toTpm
in interfaceTpmMarshaller
- Overrides:
toTpm
in classTpmStructure
- Parameters:
buf
- An output byte buffer
-
initFromTpm
public void initFromTpm(TpmBuffer buf)
TpmMarshaller method- Specified by:
initFromTpm
in interfaceTpmMarshaller
- Overrides:
initFromTpm
in classTpmStructure
- Parameters:
buf
- An input byte buffer
-
toTpm
public byte[] toTpm()
Deprecated.UseTpmStructure.toBytes()
instead- Returns:
- Wire (marshaled) representation of this object
-
fromBytes
public static TPM2_SetCommandCodeAuditStatus_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_SetCommandCodeAuditStatus_REQUEST fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
instead- Parameters:
byteBuf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
fromTpm
public static TPM2_SetCommandCodeAuditStatus_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 classTpmStructure
- Parameters:
_p
- The structure accumulatord
- The data to serialize
-
numHandles
public int numHandles()
- Overrides:
numHandles
in classCmdStructure
- Returns:
- Number of TPM handles contained (as fields) in this data structure
-
numAuthHandles
public int numAuthHandles()
- Overrides:
numAuthHandles
in classReqStructure
- Returns:
- Number of authorization TPM handles contained in this data structure
-
getHandles
public TPM_HANDLE[] getHandles()
- Overrides:
getHandles
in classReqStructure
- Returns:
- An array of TPM handles contained in this TPM request data structure
-
-