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

Object
  extended by TcBasicTypeDecoder
      extended by TcCompositeTypeDecoder
          extended by TcTpmCertifyInfo

public class TcTpmCertifyInfo
extends TcCompositeTypeDecoder

When the TPM certifies a key, it must provide a signature with a TPM identity key on information that describes that key. This structure provides the mechanism to do so.

TCPA 1.1b Main Specification, page number:
75

Constructor Summary
TcTpmCertifyInfo()
          Constructor - see superclass for details
TcTpmCertifyInfo(TcBlobData data)
          Constructor - see superclass for details
TcTpmCertifyInfo(TcBlobData data, int offset)
          Constructor - see superclass for details
TcTpmCertifyInfo(TcCompositeTypeDecoder composite)
          Constructor - see superclass for details
 
Method Summary
 TcTpmKeyParms getAlgorithmParms()
          Returns contents of the algorithmParms field.
 short getAuthDataUsage()
          Returns contents of the authDataUsage field.
 TcTpmNonce getData()
          Returns contents of the data field.
 TcBlobData getEncoded()
          This method encodes the TPM_CERTIFY_INFO as a byte blob.
 long getKeyFlags()
          Returns contents of the keyFlags field.
 int getKeyUsage()
          Returns contents of the keyUsage field.
 TcBlobData getPcrInfo()
          Returns contents of the pcrInfo field.
 long getPcrInfoSize()
          Returns contents of the pcrInfoSize field.
 TcTpmDigest getPubKeyDigest()
          Returns contents of the pubKeyDigest field.
 TcTpmVersion getVersion()
          Returns contents of the version field.
 boolean isParentPcrStatus()
          Returns contents of the parentPcrStatus field.
 void setAlgorithmParms(TcTpmKeyParms algorithmParms)
          Sets the algorithmParms field.
 void setAuthDataUsage(short authDataUsage)
          Sets the authDataUsage field.
 void setData(TcTpmNonce data)
          Sets the data field.
 void setKeyFlags(long keyFlags)
          Sets the keyFlags field.
 void setKeyUsage(int keyUsage)
          Sets the keyUsage field.
 void setParentPcrStatus(boolean parentPcrStatus)
          Sets the parentPcrStatus field.
 void setPcrInfo(TcBlobData pcrInfo)
          Sets the pcrInfo field.
 void setPubKeyDigest(TcTpmDigest pubKeyDigest)
          Sets the pubKeyDigest field.
 void setVersion(TcTpmStructVer version)
          Sets the version field.
 String toString()
          This method returns a String representation of the object.
 
Methods inherited from class 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 Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TcTpmCertifyInfo

public TcTpmCertifyInfo()
Constructor - see superclass for details

See Also:
TcCompositeTypeDecoder.TcCompositeTypeDecoder()

TcTpmCertifyInfo

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

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

TcTpmCertifyInfo

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

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

TcTpmCertifyInfo

public TcTpmCertifyInfo(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_CERTIFY_INFO as a byte blob.

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

toString

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

Overrides:
toString in class TcCompositeTypeDecoder

getAlgorithmParms

public TcTpmKeyParms getAlgorithmParms()
Returns contents of the algorithmParms field.


setAlgorithmParms

public void setAlgorithmParms(TcTpmKeyParms algorithmParms)
Sets the algorithmParms field.


getAuthDataUsage

public short getAuthDataUsage()
Returns contents of the authDataUsage field.


setAuthDataUsage

public void setAuthDataUsage(short authDataUsage)
Sets the authDataUsage field.


getData

public TcTpmNonce getData()
Returns contents of the data field.


setData

public void setData(TcTpmNonce data)
Sets the data field.


getKeyFlags

public long getKeyFlags()
Returns contents of the keyFlags field.


setKeyFlags

public void setKeyFlags(long keyFlags)
Sets the keyFlags field.


getKeyUsage

public int getKeyUsage()
Returns contents of the keyUsage field.


setKeyUsage

public void setKeyUsage(int keyUsage)
Sets the keyUsage field.


isParentPcrStatus

public boolean isParentPcrStatus()
Returns contents of the parentPcrStatus field.


setParentPcrStatus

public void setParentPcrStatus(boolean parentPcrStatus)
Sets the parentPcrStatus field.


getPcrInfo

public TcBlobData getPcrInfo()
Returns contents of the pcrInfo field.


setPcrInfo

public void setPcrInfo(TcBlobData pcrInfo)
Sets the pcrInfo field.


getPcrInfoSize

public long getPcrInfoSize()
Returns contents of the pcrInfoSize field.


getPubKeyDigest

public TcTpmDigest getPubKeyDigest()
Returns contents of the pubKeyDigest field.


setPubKeyDigest

public void setPubKeyDigest(TcTpmDigest pubKeyDigest)
Sets the pubKeyDigest field.


getVersion

public TcTpmVersion getVersion()
Returns contents of the version field.


setVersion

public void setVersion(TcTpmStructVer version)
Sets the version field.