iaik.tc.tss.api.structs.tpm
Class TcTpmPcrInfo

java.lang.Object
  extended by iaik.tc.tss.api.structs.common.TcBasicTypeDecoder
      extended by iaik.tc.tss.api.structs.common.TcCompositeTypeDecoder
          extended by iaik.tc.tss.api.structs.tpm.TcTpmPcrInfo
All Implemented Interfaces:
TcITpmPcrInfo

public class TcTpmPcrInfo
extends TcCompositeTypeDecoder
implements TcITpmPcrInfo

The TPM_PCR_INFO structure contains the information related to the wrapping of a key or the sealing of data, to a set of PCRs.

TCPA 1.1b Main Specification, page number:
62

Constructor Summary
TcTpmPcrInfo()
          Constructor - see superclass for details
TcTpmPcrInfo(TcBlobData data)
          Constructor - see superclass for details
TcTpmPcrInfo(TcBlobData data, int offset)
          Constructor - see superclass for details
TcTpmPcrInfo(TcCompositeTypeDecoder composite)
          Constructor - see superclass for details
 
Method Summary
 TcTpmCompositeHash getDigestAtCreation()
          Returns contents of the digestAtCreation field.
 TcTpmCompositeHash getDigestAtRelease()
          Returns contents of the digestAtRelease field.
 TcBlobData getEncoded()
          This method encodes the TPM_PCR_INFO as a byte blob.
 TcTpmPcrSelection getPcrSelection()
          Returns contents of the pcrSelection field.
 void setDigestAtCreation(TcTpmCompositeHash digestAtCreation)
          Sets the digestAtCreation field.
 void setDigestAtRelease(TcTpmCompositeHash digestAtRelease)
          Sets the digestAtRelease field.
 void setPcrSelection(TcTpmPcrSelection pcrSelection)
          Sets the pcrSelection field.
 java.lang.String toString()
          This method returns a String representation of the object.
 
Methods inherited from class iaik.tc.tss.api.structs.common.TcBasicTypeDecoder
decodeBoolean, decodeByte, decodeBytes, decodeBytes, decodeTpmAlgorithmId, decodeTpmAuthDataUsage, decodeTpmEncScheme, decodeTpmKeyFlags, decodeTpmKeyUsage, decodeTpmSigScheme, decodeTssAlgorithmId, decodeTssEncScheme, decodeTssEvenType, decodeTssFlag, decodeTssHandle, decodeTssHContext, decodeTssHEncData, decodeTssHHash, decodeTssHKey, decodeTssHObjet, decodeTssHPcrs, decodeTssHPolicy, decodeTssHPS, decodeTssHTpm, decodeTssKeyUsageId, decodeTssMigrationScheme, decodeTssResult, decodeTssSigScheme, decodeUINT16, decodeUINT32, decodeUINT64
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TcTpmPcrInfo

public TcTpmPcrInfo()
Constructor - see superclass for details

See Also:
TcCompositeTypeDecoder.TcCompositeTypeDecoder()

TcTpmPcrInfo

public TcTpmPcrInfo(TcBlobData data)
Constructor - see superclass for details

See Also:
TcCompositeTypeDecoder.TcCompositeTypeDecoder(iaik.tc.tss.api.structs.common.TcBlobData)

TcTpmPcrInfo

public TcTpmPcrInfo(TcBlobData data,
                    int offset)
Constructor - see superclass for details

See Also:
TcCompositeTypeDecoder.TcCompositeTypeDecoder(iaik.tc.tss.api.structs.common.TcBlobData, int)

TcTpmPcrInfo

public TcTpmPcrInfo(TcCompositeTypeDecoder composite)
Constructor - see superclass for details

See Also:
TcCompositeTypeDecoder.TcCompositeTypeDecoder(iaik.tc.tss.api.structs.common.TcCompositeTypeDecoder)
Method Detail

getEncoded

public TcBlobData getEncoded()
This method encodes the TPM_PCR_INFO as a byte blob.

Specified by:
getEncoded in interface TcITpmPcrInfo
Specified by:
getEncoded in class TcCompositeTypeDecoder
Returns:
byte blob to be passed to other layers (e.g. TSS)

toString

public java.lang.String toString()
This method returns a String representation of the object.

Overrides:
toString in class TcCompositeTypeDecoder

getDigestAtCreation

public TcTpmCompositeHash getDigestAtCreation()
Returns contents of the digestAtCreation field.

Specified by:
getDigestAtCreation in interface TcITpmPcrInfo

setDigestAtCreation

public void setDigestAtCreation(TcTpmCompositeHash digestAtCreation)
Sets the digestAtCreation field.

Specified by:
setDigestAtCreation in interface TcITpmPcrInfo

getDigestAtRelease

public TcTpmCompositeHash getDigestAtRelease()
Returns contents of the digestAtRelease field.

Specified by:
getDigestAtRelease in interface TcITpmPcrInfo

setDigestAtRelease

public void setDigestAtRelease(TcTpmCompositeHash digestAtRelease)
Sets the digestAtRelease field.

Specified by:
setDigestAtRelease in interface TcITpmPcrInfo

getPcrSelection

public TcTpmPcrSelection getPcrSelection()
Returns contents of the pcrSelection field.


setPcrSelection

public void setPcrSelection(TcTpmPcrSelection pcrSelection)
Sets the pcrSelection field.