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

Object
  extended by TcBasicTypeDecoder
      extended by TcCompositeTypeDecoder
          extended by TcTpmSymmetricKey

public class TcTpmSymmetricKey
extends TcCompositeTypeDecoder

This structure describes a symmetric key, used during the ColalteIdentityRequest process.

TCPA 1.1b Main Specification, page number:
65

Constructor Summary
TcTpmSymmetricKey()
          Constructor - see superclass for details
TcTpmSymmetricKey(TcBlobData blob)
          Constructor - see superclass for details
TcTpmSymmetricKey(TcBlobData blob, int offset)
          Constructor - see superclass for details
TcTpmSymmetricKey(TcCompositeTypeDecoder composite)
          Constructor - see superclass for details
 
Method Summary
 long getAlgId()
          Returns contents of the algId field.
 TcBlobData getData()
          Returns contents of the data field.
 TcBlobData getEncoded()
          This method encodes the TPM_SYMMETRIC_KEY as a byte blob.
 int getEncScheme()
          Returns contents of the encScheme field.
 int getSize()
          Returns contents of the size field.
 void setAlgId(long algId)
          Sets the algId field.
 void setData(TcBlobData data)
          Sets the data field.
 void setEncScheme(int encScheme)
          Sets the encScheme 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

TcTpmSymmetricKey

public TcTpmSymmetricKey()
Constructor - see superclass for details


TcTpmSymmetricKey

public TcTpmSymmetricKey(TcBlobData blob)
Constructor - see superclass for details


TcTpmSymmetricKey

public TcTpmSymmetricKey(TcBlobData blob,
                         int offset)
Constructor - see superclass for details


TcTpmSymmetricKey

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

Method Detail

getEncoded

public TcBlobData getEncoded()
This method encodes the TPM_SYMMETRIC_KEY 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

getAlgId

public long getAlgId()
Returns contents of the algId field.


setAlgId

public void setAlgId(long algId)
Sets the algId field.


getData

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


setData

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


getEncScheme

public int getEncScheme()
Returns contents of the encScheme field.


setEncScheme

public void setEncScheme(int encScheme)
Sets the encScheme field.


getSize

public int getSize()
Returns contents of the size field.