iaik.tc.tss.impl.java.tsp.internal.offline
Class WrapTcPcrCompositeInfoShort

java.lang.Object
  extended by iaik.tc.tss.impl.java.tsp.TcAttributes
      extended by iaik.tc.tss.impl.java.tsp.TcWorkingObject
          extended by iaik.tc.tss.impl.java.tsp.TcPcrCompositeBase
              extended by iaik.tc.tss.impl.java.tsp.TcPcrCompositeInfoShort
                  extended by iaik.tc.tss.impl.java.tsp.internal.offline.WrapTcPcrCompositeInfoShort
All Implemented Interfaces:
TcIAttributes, TcIPcrComposite, TcIWorkingObject

public class WrapTcPcrCompositeInfoShort
extends TcPcrCompositeInfoShort

A wrapping around TcPcrCompositeInfoShort.
With this wrapping it is easy to calculate composite hashes without the need of a present TPM.
This wrapping also allows to get access to the internal TcTpmPcrInfoShort struct via getPcrInfoShort() method.


Field Summary
static int NUM_PCRS
           
 
Method Summary
static WrapTcPcrCompositeInfoShort getInstance()
          Create an instance of WrapTcPcrCompositeInfoShort
 TcTpmPcrInfoShort getPcrInfoShort()
           
 void selectPcrIndex(long pcrIndex)
          This method selects a PCR index inside a PCR composite object using the 1.1 TcTpmPcrInfo structure.
 
Methods inherited from class iaik.tc.tss.impl.java.tsp.TcPcrCompositeInfoShort
getPcrCompositeHash, getPcrLocality, selectPcrIndexEx, setPcrLocality, setPcrValue, toString
 
Methods inherited from class iaik.tc.tss.impl.java.tsp.TcPcrCompositeBase
getAttribPcrStruct, getPcrValue, setAttribPcrStruct
 
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, wait, wait, wait
 
Methods inherited from interface iaik.tc.tss.api.tspi.TcIAttributes
getAttribData, getAttribUint32, setAttribData, setAttribUint32
 

Field Detail

NUM_PCRS

public static final int NUM_PCRS
See Also:
Constant Field Values
Method Detail

getPcrInfoShort

public TcTpmPcrInfoShort getPcrInfoShort()

selectPcrIndex

public void selectPcrIndex(long pcrIndex)
Description copied from interface: TcIPcrComposite
This method selects a PCR index inside a PCR composite object using the 1.1 TcTpmPcrInfo structure. If the PcrComposite object is using another structure than TcTpmPcrInfo, this function throws a TcTssException with an TcTssErrors.TSS_E_INVALID_OBJ_ACCESS error code.

Specified by:
selectPcrIndex in interface TcIPcrComposite
Overrides:
selectPcrIndex in class TcPcrCompositeInfoShort
Parameters:
pcrIndex - The index of the PCR to select.

getInstance

public static WrapTcPcrCompositeInfoShort getInstance()
Create an instance of WrapTcPcrCompositeInfoShort