|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.tc.tss.impl.java.tsp.TcAttributes iaik.tc.tss.impl.java.tsp.TcWorkingObject iaik.tc.tss.impl.java.tsp.TcAuthObject iaik.tc.tss.impl.java.tsp.TcNvRam
public class TcNvRam
Method Summary | |
---|---|
void |
changeAuth(TcIAuthObject parentObject,
TcIPolicy newPolicy)
This method changes the authorization data (secret) of an entity (object) and assigns the object to the newPolicy object. |
void |
defineSpace(TcTpmNvDataPublic pubData)
This method establishes the space necessary for the NV store. |
TcBlobData |
readValue(long offset,
long dataLength)
This method reads the data from the defined area. |
void |
releaseSpace()
This method releases the space associated with the NV store instance. |
void |
writeValue(long offset,
TcBlobData dataToWrite)
This method writes a given value to a previously defined area. |
Methods inherited from class iaik.tc.tss.impl.java.tsp.TcAuthObject |
---|
changeAuthAsym, getPolicyObject, getUsagePolicyObject |
Methods inherited from class iaik.tc.tss.impl.java.tsp.TcAttributes |
---|
getAttribData, getAttribUint32, setAttribData, setAttribUint32 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface iaik.tc.tss.api.tspi.TcIAttributes |
---|
getAttribData, getAttribUint32, setAttribData, setAttribUint32 |
Methods inherited from interface iaik.tc.tss.api.tspi.TcIAuthObject |
---|
changeAuthAsym, getPolicyObject, getUsagePolicyObject |
Method Detail |
---|
public void defineSpace(TcTpmNvDataPublic pubData) throws TcTssException
TcINvRam
Be careful when defining indices with set D-bit. Indices which have this bit set might be unerasable on some TPMs. Some TPM_NV_INDEX_* constants have this bit set for compatibility reasons.
defineSpace
in interface TcINvRam
pubData
- Complete TcTpmNvDataPublic
object containing access
information for the newly created NV storage area.
TcTssException
public TcBlobData readValue(long offset, long dataLength) throws TcTssException
TcINvRam
readValue
in interface TcINvRam
offset
- The offset within the NV area to begin reading.dataLength
- The number of bytes to be read. The special value
0xFFFFFFFF
activates Smart Read: the TSS will
determine the size of data automatically and assemble it
internally from its parts.
TcTssException
public void releaseSpace() throws TcTssException
TcINvRam
releaseSpace
in interface TcINvRam
TcTssException
public void writeValue(long offset, TcBlobData dataToWrite) throws TcTssException
TcINvRam
writeValue
in interface TcINvRam
offset
- The offset within the NV area to begin writing.dataToWrite
- The data to be written.
TcTssException
public void changeAuth(TcIAuthObject parentObject, TcIPolicy newPolicy) throws TcTssException
TcIAuthObject
changeAuth
in interface TcIAuthObject
parentObject
- The parent object wrapping this object.newPolicy
- Policy object providing the new authorization data.
TcTssException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |