Package tss.tpm
Class StartAuthSessionResponse
- java.lang.Object
-
- tss.TpmStructure
-
- tss.CmdStructure
-
- tss.RespStructure
-
- tss.tpm.StartAuthSessionResponse
-
- All Implemented Interfaces:
TpmMarshaller
public class StartAuthSessionResponse extends RespStructure
This command is used to start an authorization session using alternative methods of establishing the session key (sessionKey). The session key is then used to derive values used for authorization and for encrypting parameters.
-
-
Field Summary
Fields Modifier and Type Field Description TPM_HANDLE
handle
Handle for the newly created sessionbyte[]
nonceTPM
The initial nonce from the TPM, used in the computation of the sessionKey
-
Constructor Summary
Constructors Constructor Description StartAuthSessionResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StartAuthSessionResponse
fromBytes(byte[] byteBuf)
Static marshaling helperstatic StartAuthSessionResponse
fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
insteadstatic StartAuthSessionResponse
fromTpm(TpmBuffer buf)
Static marshaling helperTPM_HANDLE
getHandle()
void
initFromTpm(TpmBuffer buf)
TpmMarshaller methodint
numHandles()
SessEncInfo
sessEncInfo()
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()
insteadvoid
toTpm(TpmBuffer buf)
TpmMarshaller method-
Methods inherited from class tss.RespStructure
typeName
-
Methods inherited from class tss.TpmStructure
equals, hashCode, toBytes
-
-
-
-
Field Detail
-
handle
public TPM_HANDLE handle
Handle for the newly created session
-
nonceTPM
public byte[] nonceTPM
The initial nonce from the TPM, used in the computation of the sessionKey
-
-
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 StartAuthSessionResponse fromBytes(byte[] byteBuf)
Static marshaling helper- Parameters:
byteBuf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
fromTpm
public static StartAuthSessionResponse 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 StartAuthSessionResponse 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
-
sessEncInfo
public SessEncInfo sessEncInfo()
- Overrides:
sessEncInfo
in classCmdStructure
- 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.
-
-