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

Object
  extended by TcBasicTypeDecoder
      extended by TcCompositeTypeDecoder
          extended by TcTpmContextBlob

public class TcTpmContextBlob
extends TcCompositeTypeDecoder


Constructor Summary
TcTpmContextBlob()
          Constructor - see superclass for details
TcTpmContextBlob(TcBlobData data)
          Constructor - see superclass for details
TcTpmContextBlob(TcBlobData data, int offset)
          Constructor - see superclass for details
TcTpmContextBlob(TcCompositeTypeDecoder composite)
          Constructor - see superclass for details
 
Method Summary
 TcBlobData getAdditionalData()
          Returns contents of the additionalData field.
 long getAdditionalSize()
          Returns contents of the additionalSize field.
 long getContextCount()
          Returns contents of the contextCount field.
 TcBlobData getEncoded()
          This method encodes the TPM_CONTEXT_BLOB as a byte blob.
 long getHandle()
          Returns contents of the handle field.
 TcTpmDigest getIntegrityDigest()
          Returns contents of the integrityDigest field.
 TcBlobData getLabel()
          Returns contents of the label field.
 long getResourceType()
          Returns contents of the resourceType field.
 TcBlobData getSensitiveData()
          Returns contents of the sensitiveData field.
 long getSensitiveSize()
          Returns contents of the sensitiveSize field.
 int getTag()
          Returns contents of the tag field.
 void setAdditionalData(TcBlobData additionalData)
          Sets the additionalData field.
 void setContextCount(long contextCount)
          Sets the contextCount field.
 void setHandle(long handle)
          Sets the handle field.
 void setIntegrityDigest(TcTpmDigest integrityDigest)
          Sets the integrityDigest field.
 void setLabel(TcBlobData label)
          Sets the label field.
 void setResourceType(long resourceType)
          Sets the resourceType field.
 void setSensitiveData(TcBlobData sensitiveData)
          Sets the sensitiveData field.
 void setTag(int tag)
          Sets the tag 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

TcTpmContextBlob

public TcTpmContextBlob()
Constructor - see superclass for details

See Also:
TcCompositeTypeDecoder.TcCompositeTypeDecoder()

TcTpmContextBlob

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

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

TcTpmContextBlob

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

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

TcTpmContextBlob

public TcTpmContextBlob(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_CONTEXT_BLOB 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

getTag

public int getTag()
Returns contents of the tag field.


setTag

public void setTag(int tag)
Sets the tag field.


getResourceType

public long getResourceType()
Returns contents of the resourceType field.


setResourceType

public void setResourceType(long resourceType)
Sets the resourceType field.


getHandle

public long getHandle()
Returns contents of the handle field.


setHandle

public void setHandle(long handle)
Sets the handle field.


getLabel

public TcBlobData getLabel()
Returns contents of the label field.


setLabel

public void setLabel(TcBlobData label)
Sets the label field.


getContextCount

public long getContextCount()
Returns contents of the contextCount field.


setContextCount

public void setContextCount(long contextCount)
Sets the contextCount field.


getIntegrityDigest

public TcTpmDigest getIntegrityDigest()
Returns contents of the integrityDigest field.


setIntegrityDigest

public void setIntegrityDigest(TcTpmDigest integrityDigest)
Sets the integrityDigest field.


getAdditionalSize

public long getAdditionalSize()
Returns contents of the additionalSize field.


getAdditionalData

public TcBlobData getAdditionalData()
Returns contents of the additionalData field.


setAdditionalData

public void setAdditionalData(TcBlobData additionalData)
Sets the additionalData field.


getSensitiveSize

public long getSensitiveSize()
Returns contents of the sensitiveSize field.


getSensitiveData

public TcBlobData getSensitiveData()
Returns contents of the sensitiveData field.


setSensitiveData

public void setSensitiveData(TcBlobData sensitiveData)
Sets the sensitiveData field.