public class TPM_HANDLE extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
byte[] |
AuthValue
Authorization value associated with this handle object.
|
int |
handle
TPM entity handle represented by this object.
|
byte[] |
Name
Name of the TPM entity represented by this handle object.
|
static TPM_HANDLE |
NULL
Represents TPM_RH.NULL handle constant
|
| Constructor and Description |
|---|
TPM_HANDLE()
TPM object handle (and related data)
|
TPM_HANDLE(int _handle)
TPM object handle (and related data)
|
| Modifier and Type | Method and Description |
|---|---|
static TPM_HANDLE |
from(int val)
Creates a TPM handle from an arbitrary int value
|
static TPM_HANDLE |
from(TPM_RH _handle)
Creates a TPM handle from a reserved handle constant
|
static TPM_HANDLE |
fromTpm(byte[] x) |
static TPM_HANDLE |
fromTpm(InByteBuf buf) |
byte[] |
getName()
Gets the TPM-name associated with this handle
|
TPM_HT |
getType()
Gets the handle type
|
void |
initFromTpm(InByteBuf buf)
Populate this object from the TPM representation in the input byte buffer object
|
static TPM_HANDLE |
NV(int NvSlot)
Creates a TPM_HANDLE for an NV slot
|
static TPM_HANDLE |
pcr(int PcrIndex)
Creates a TPM_HANDLE for a PCR
|
static TPM_HANDLE |
persistent(int handleOffset)
Creates a TPM_HANDLE from an offset into the reserved handle space
|
static TPM_HANDLE |
pwSession(byte[] authValue)
Creates a password session handle with the associated authorization value
|
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 static final TPM_HANDLE NULL
public int handle
public byte[] AuthValue
public byte[] Name
public TPM_HANDLE(int _handle)
_handle - TPM key handlepublic TPM_HANDLE()
public void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static TPM_HANDLE fromTpm(byte[] x)
public static TPM_HANDLE fromTpm(InByteBuf buf)
public static TPM_HANDLE from(int val)
val - An int value to be used as a TPM handlepublic static TPM_HANDLE from(TPM_RH _handle)
_handle - The reserved handle constantpublic static TPM_HANDLE persistent(int handleOffset)
handleOffset - The reserved handle offsetpublic static TPM_HANDLE pcr(int PcrIndex)
PcrIndex - The PCR indexpublic TPM_HT getType()
public static TPM_HANDLE NV(int NvSlot)
NvSlot - The NV indexpublic static TPM_HANDLE pwSession(byte[] authValue)
authValue - The authorization valuepublic byte[] getName()
public void toStringInternal(TpmStructurePrinter _p, int d)
TpmStructuretoStringInternal in class TpmStructure_p - The structure accumulatord - The data to serializeCopyright © 2017. All rights reserved.