Package tss.tpm
Class TPMT_SENSITIVE
- java.lang.Object
-
- tss.TpmStructure
-
- tss.tpm.TPMT_SENSITIVE
-
- All Implemented Interfaces:
TpmMarshaller
public class TPMT_SENSITIVE extends TpmStructure
AuthValue shall not be larger than the size of the digest produced by the nameAlg of the object. seedValue shall be the size of the digest produced by the nameAlg of the object.
-
-
Field Summary
Fields Modifier and Type Field Description byte[]
authValue
User authorization data The authValue may be a zero-length string.byte[]
seedValue
For a parent object, the optional protection seed; for other objects, the obfuscation valueTPMU_SENSITIVE_COMPOSITE
sensitive
The type-specific private data One of: TPM2B_PRIVATE_KEY_RSA, TPM2B_ECC_PARAMETER, TPM2B_SENSITIVE_DATA, TPM2B_SYM_KEY, TPM2B_PRIVATE_VENDOR_SPECIFIC.
-
Constructor Summary
Constructors Constructor Description TPMT_SENSITIVE()
TPMT_SENSITIVE(byte[] _authValue, byte[] _seedValue, TPMU_SENSITIVE_COMPOSITE _sensitive)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TPMT_SENSITIVE
fromBytes(byte[] byteBuf)
Static marshaling helperstatic TPMT_SENSITIVE
fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
insteadstatic TPMT_SENSITIVE
fromTpm(TpmBuffer buf)
Static marshaling helpervoid
initFromTpm(TpmBuffer buf)
TpmMarshaller methodTPM_ALG_ID
sensitiveType()
Identifier for the sensitive area This shall be the same as the type parameter of the associated public area.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.TpmStructure
equals, hashCode, toBytes
-
-
-
-
Field Detail
-
authValue
public byte[] authValue
User authorization data The authValue may be a zero-length string.
-
seedValue
public byte[] seedValue
For a parent object, the optional protection seed; for other objects, the obfuscation value
-
sensitive
public TPMU_SENSITIVE_COMPOSITE sensitive
The type-specific private data One of: TPM2B_PRIVATE_KEY_RSA, TPM2B_ECC_PARAMETER, TPM2B_SENSITIVE_DATA, TPM2B_SYM_KEY, TPM2B_PRIVATE_VENDOR_SPECIFIC.
-
-
Constructor Detail
-
TPMT_SENSITIVE
public TPMT_SENSITIVE()
-
TPMT_SENSITIVE
public TPMT_SENSITIVE(byte[] _authValue, byte[] _seedValue, TPMU_SENSITIVE_COMPOSITE _sensitive)
- Parameters:
_authValue
- User authorization data The authValue may be a zero-length string._seedValue
- For a parent object, the optional protection seed; for other objects, the obfuscation value_sensitive
- The type-specific private data One of: TPM2B_PRIVATE_KEY_RSA, TPM2B_ECC_PARAMETER, TPM2B_SENSITIVE_DATA, TPM2B_SYM_KEY, TPM2B_PRIVATE_VENDOR_SPECIFIC.
-
-
Method Detail
-
sensitiveType
public TPM_ALG_ID sensitiveType()
Identifier for the sensitive area This shall be the same as the type parameter of the associated public area.
-
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 TPMT_SENSITIVE fromBytes(byte[] byteBuf)
Static marshaling helper- Parameters:
byteBuf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
fromTpm
public static TPMT_SENSITIVE 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 TPMT_SENSITIVE 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
-
-