public class TPM2_PolicySecret_REQUEST extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
TPM_HANDLE |
authHandle
handle for an entity providing the authorization Auth Index: 1 Auth Role: USER
|
byte[] |
cpHashA
digest of the command parameters to which this authorization is limited This not the cpHash for this command but the cpHash for the command to which this policy session will be applied.
|
int |
expiration
time when authorization will expire, measured in seconds from the time that nonceTPM was generated If expiration is non-negative, a NULL Ticket is returned.
|
byte[] |
nonceTPM
the policy nonce for the session This can be the Empty Buffer.
|
byte[] |
policyRef
a reference to a policy relating to the authorization may be the Empty Buffer Size is limited to be no larger than the nonce size supported on the TPM.
|
TPM_HANDLE |
policySession
handle for the policy session being extended Auth Index: None
|
| Constructor and Description |
|---|
TPM2_PolicySecret_REQUEST()
This command includes a secret-based authorization to a policy.
|
TPM2_PolicySecret_REQUEST(TPM_HANDLE _authHandle,
TPM_HANDLE _policySession,
byte[] _nonceTPM,
byte[] _cpHashA,
byte[] _policyRef,
int _expiration)
This command includes a secret-based authorization to a policy.
|
| Modifier and Type | Method and Description |
|---|---|
static TPM2_PolicySecret_REQUEST |
fromTpm(byte[] x) |
static TPM2_PolicySecret_REQUEST |
fromTpm(InByteBuf buf) |
void |
initFromTpm(InByteBuf buf)
Populate this object from the TPM representation in the input byte buffer object
|
String |
toString() |
void |
toStringInternal(TpmStructurePrinter _p,
int d)
Serialize this object to the structure printer
|
byte[] |
toTpm()
Convert this object to its TPM representation and return it as a byte array
|
void |
toTpm(OutByteBuf buf)
Convert this object to its TPM representation and store in the output byte buffer object
|
equals, hashCodepublic TPM_HANDLE authHandle
public TPM_HANDLE policySession
public byte[] nonceTPM
public byte[] cpHashA
public byte[] policyRef
public int expiration
public TPM2_PolicySecret_REQUEST(TPM_HANDLE _authHandle, TPM_HANDLE _policySession, byte[] _nonceTPM, byte[] _cpHashA, byte[] _policyRef, int _expiration)
_authHandle - handle for an entity providing the authorization Auth Index: 1 Auth Role: USER_policySession - handle for the policy session being extended Auth Index: None_nonceTPM - the policy nonce for the session This can be the Empty Buffer._cpHashA - digest of the command parameters to which this authorization is limited This not the cpHash for this command but the cpHash for the command to which this policy session will be applied. If it is not limited, the parameter will be the Empty Buffer._policyRef - a reference to a policy relating to the authorization may be the Empty Buffer Size is limited to be no larger than the nonce size supported on the TPM._expiration - time when authorization will expire, measured in seconds from the time that nonceTPM was generated If expiration is non-negative, a NULL Ticket is returned. See 23.2.5.public TPM2_PolicySecret_REQUEST()
public void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static TPM2_PolicySecret_REQUEST fromTpm(byte[] x)
public static TPM2_PolicySecret_REQUEST fromTpm(InByteBuf buf)
public void toStringInternal(TpmStructurePrinter _p, int d)
TpmStructuretoStringInternal in class TpmStructure_p - The structure accumulatord - The data to serializeCopyright © 2017. All rights reserved.