Package tss.tpm
Class ContextLoadResponse
- java.lang.Object
-
- tss.TpmStructure
-
- tss.CmdStructure
-
- tss.RespStructure
-
- tss.tpm.ContextLoadResponse
-
- All Implemented Interfaces:
TpmMarshaller
public class ContextLoadResponse extends RespStructure
This command is used to reload a context that has been saved by TPM2_ContextSave().
-
-
Field Summary
Fields Modifier and Type Field Description TPM_HANDLE
handle
The handle assigned to the resource after it has been successfully loaded
-
Constructor Summary
Constructors Constructor Description ContextLoadResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ContextLoadResponse
fromBytes(byte[] byteBuf)
Static marshaling helperstatic ContextLoadResponse
fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
insteadstatic ContextLoadResponse
fromTpm(TpmBuffer buf)
Static marshaling helperTPM_HANDLE
getHandle()
int
numHandles()
void
setHandle(TPM_HANDLE h)
Sets this structure's handle field (TPM_HANDLE) if it is presentString
toString()
void
toStringInternal(TpmStructurePrinter _p, int d)
Serialize this object to the structure printerbyte[]
toTpm()
Deprecated.UseTpmStructure.toBytes()
instead-
Methods inherited from class tss.RespStructure
typeName
-
Methods inherited from class tss.CmdStructure
sessEncInfo
-
Methods inherited from class tss.TpmStructure
equals, hashCode, initFromTpm, toBytes, toTpm
-
-
-
-
Field Detail
-
handle
public TPM_HANDLE handle
The handle assigned to the resource after it has been successfully loaded
-
-
Method Detail
-
toTpm
public byte[] toTpm()
Deprecated.UseTpmStructure.toBytes()
instead- Returns:
- Wire (marshaled) representation of this object
-
fromBytes
public static ContextLoadResponse fromBytes(byte[] byteBuf)
Static marshaling helper- Parameters:
byteBuf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
fromTpm
public static ContextLoadResponse 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 ContextLoadResponse 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
-
getHandle
public TPM_HANDLE getHandle()
- Overrides:
getHandle
in classRespStructure
- Returns:
- The TPM handle contained in this TPM response data structure
-
setHandle
public void setHandle(TPM_HANDLE h)
Description copied from class:RespStructure
Sets this structure's handle field (TPM_HANDLE) if it is present- Overrides:
setHandle
in classRespStructure
- Parameters:
h
- The handle value
-
-