|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectiaik.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(TcIPcrComposite readPcrComposite,
TcIPcrComposite writePcrComposite)
This method establishes the space necessary for the NV store. |
long |
getAttribNvDataSize(long subFlag)
This method returns the NV data size currently set for this object. |
long |
getAttribNvIndex(long subFlag)
This method returns the nvIndex currently set for this object. |
TcBlobData |
getAttribNvPcrData(long subFlag)
This method returns PCR information as specified by subFlag. |
long |
getAttribNvPcrUint32(long subFlag)
This method returns PCR information as specified by subFlag. |
long |
getAttribNvPermissions(long subFlag)
This method returns the nvPermissions currently set for this object. |
long |
getAttribNvState(long subFlag)
This method returns NV state information as specified by subFlag. |
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 |
setAttribNvIndex(long subFlag,
long attrib)
This method sets the TcTssConstants.TSS_TSPATTRIB_NV_INDEX attribute. |
void |
setAttribNvPermissions(long subFlag,
long attrib)
This method sets the value of the permissions. |
void |
setAttrivNvDatasize(long subFlag,
long attrib)
This method sets the size of the defined NV storage area. |
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(TcIPcrComposite readPcrComposite,
TcIPcrComposite writePcrComposite)
throws TcTssException
TcINvRam
defineSpace in interface TcINvRamreadPcrComposite - If this value is null, no PCR values are associated with reading from
the NV space. If not null, the newly created NV storage area will require the PCR
values described in this parameter for successfully reading this storage area.writePcrComposite - If this value is null, no PCR values are associated with writing to
the NV space. If not null, the newly created NV storage area will require the PCR
values describe in this parameter for successfully writing to this storage area.
TcTssException
public TcBlobData readValue(long offset,
long dataLength)
throws TcTssException
TcINvRam
readValue in interface TcINvRamoffset - The offset within the NV area to begin reading.dataLength - The number of bytes to be read.
TcTssException
public void releaseSpace()
throws TcTssException
TcINvRam
releaseSpace in interface TcINvRamTcTssException
public void writeValue(long offset,
TcBlobData dataToWrite)
throws TcTssException
TcINvRam
writeValue in interface TcINvRamoffset - 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 TcIAuthObjectparentObject - The parent object wrapping this object.newPolicy - Policy object providing the new authorization data.
TcTssException
public void setAttribNvIndex(long subFlag,
long attrib)
TcTssConstants.TSS_TSPATTRIB_NV_INDEX attribute. Note that this
method is not standardized as part of the TSPI.
subFlag - Ignored.attrib - The index of the NV storage area associated with this object.
public void setAttribNvPermissions(long subFlag,
long attrib)
subFlag - Ignored.attrib - The value of the permissions.
public void setAttrivNvDatasize(long subFlag,
long attrib)
subFlag - Ignored.attrib - The size of the NV storage area.public long getAttribNvIndex(long subFlag)
subFlag - Ignored.
public long getAttribNvPermissions(long subFlag)
subFlag - Ignored.
public long getAttribNvDataSize(long subFlag)
subFlag - Ignored.
public long getAttribNvState(long subFlag)
throws TcTssException
subFlag - Valid subFlags are:
TcTssConstants.TSS_TSPATTRIB_NVSTATE_READSTCLEAR (returns boolean)
TcTssConstants.TSS_TSPATTRIB_NVSTATE_WRITESTCLEAR (returns boolean)
TcTssConstants.TSS_TSPATTRIB_NVSTATE_WRITEDEFINE (returns boolean)
{@link - TcTssException}
TcTssException
public long getAttribNvPcrUint32(long subFlag)
throws TcTssException
subFlag - Valid subFlags are:
{@link - TcTssException}
TcTssException
public TcBlobData getAttribNvPcrData(long subFlag)
throws TcTssException
subFlag - Valid subFlags are:
{@link - TcTssException}
TcTssException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||