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

Object
  extended by TcBasicTypeDecoder
      extended by TcCompositeTypeDecoder
          extended by TcTpmPubkey

public class TcTpmPubkey
extends TcCompositeTypeDecoder

The TPM_PUBKEY structure contains the public portion of an asymmetric key pair. It contains all the information necessary for its unambiguous usage. It is possible to construct this structure from a TPM_KEY, using the algorithmParms and pubKey fields.

TCPA 1.1b Main Specification, page number:
70

Constructor Summary
TcTpmPubkey()
          Constructor - see superclass for details
TcTpmPubkey(TcBlobData blob)
          Constructor - see superclass for details
TcTpmPubkey(TcBlobData blob, int offset)
          Constructor - see superclass for details
TcTpmPubkey(TcCompositeTypeDecoder composite)
          Constructor - see superclass for details
 
Method Summary
 TcTpmKeyParms getAlgorithmParms()
          Returns contents of the algorithmParms field.
 TcBlobData getEncoded()
          This method encodes the TPM_PUBKEY as a byte blob.
 TcTpmStorePubkey getPubKey()
          Returns contents of the pubKey field.
 void setAlgorithmParms(TcTpmKeyParms algorithmParms)
          Sets the algorithmParms field.
 void setPubKey(TcTpmStorePubkey pubKey)
          Sets the pubKey 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

TcTpmPubkey

public TcTpmPubkey()
Constructor - see superclass for details


TcTpmPubkey

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


TcTpmPubkey

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


TcTpmPubkey

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

Method Detail

getEncoded

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


getPubKey

public TcTpmStorePubkey getPubKey()
Returns contents of the pubKey field.


setPubKey

public void setPubKey(TcTpmStorePubkey pubKey)
Sets the pubKey field.