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

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.TcTpmKeyParms

public class TcTpmKeyParms
extends TcCompositeTypeDecoder

This class provides a standard mechanism to define the parameters used to generate a key pair, and to store the parts of a key shared between the public and private key parts.

TCPA 1.1b Main Specification, page number:
50

Constructor Summary
TcTpmKeyParms()
          Constructor - see superclass for details
TcTpmKeyParms(TcBlobData blob)
          Constructor - see superclass for details
TcTpmKeyParms(TcBlobData blob, int offset)
          Constructor - see superclass for details
TcTpmKeyParms(TcCompositeTypeDecoder composite)
          Constructor - see superclass for details
 
Method Summary
 long getAlgorithmID()
          Returns contents of the algorithmID field.
 TcBlobData getEncoded()
          This method encodes the TPM_KEY_PARMS as a byte blob.
 int getEncScheme()
          Returns contents of the encScheme field.
 TcBlobData getParms()
          Returns contents of the parms field.
 long getParmSize()
          Returns contents of the parmSize field.
 int getSigScheme()
          Returns contents of the sigScheme field.
 void setAlgorithmID(long algorithmID)
          Sets the algorithmID field.
 void setEncScheme(int encScheme)
          Sets the encScheme field.
 void setParms(TcBlobData parms)
          Sets the parms field.
 void setSigScheme(int sigScheme)
          Sets the sigScheme 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

TcTpmKeyParms

public TcTpmKeyParms()
Constructor - see superclass for details


TcTpmKeyParms

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


TcTpmKeyParms

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


TcTpmKeyParms

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

Method Detail

getEncoded

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

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

getAlgorithmID

public long getAlgorithmID()
Returns contents of the algorithmID field.


setAlgorithmID

public void setAlgorithmID(long algorithmID)
Sets the algorithmID field.


getEncScheme

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


setEncScheme

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


getParms

public TcBlobData getParms()
Returns contents of the parms field.


setParms

public void setParms(TcBlobData parms)
Sets the parms field.


getParmSize

public long getParmSize()
Returns contents of the parmSize field.


getSigScheme

public int getSigScheme()
Returns contents of the sigScheme field.


setSigScheme

public void setSigScheme(int sigScheme)
Sets the sigScheme field.