iaik.tc.tss.api.structs.tsp
Class TcTssVersion

Object
  extended by TcTssVersion

public class TcTssVersion
extends Object

This structure allows the TSS Service Provider to communicate with outside entities as to the version of the TPM, TSS Core Service or TSS ServiceProvider.

TSS Spec. 1.2 Errata A, page number:
102
TSS Spec. 1.10 Golden, Aug. 20, 2003, page number:
45

Field Summary
static TcTssVersion TPM_V1_1
          This constant can be used for TPM 1.1 version comparisons
static TcTssVersion TPM_V1_2
          This constant can be used for TPM 1.2 version comparisons
 
Constructor Summary
TcTssVersion()
          Default constructor.
 
Method Summary
 boolean equals(Object obj)
          This method returns true if the two version numbers are equal, false otherwise.
 boolean equalsMinMaj(Object obj)
          This method returns true if the two major and minor version numbers are equal, false otherwise.
 boolean equalsRevMinMaj(Object obj)
          This method returns true if the tow major and minor revisions numbers are equal, false otherwise.
 short getMajor()
          Returns contents of the major field.
 short getMinor()
          Returns contents of the minor field.
 short getRevMajor()
          Returns contents of the revMajor field.
 short getRevMinor()
          Returns contents of the revMinor field.
 TcTssVersion init(short major, short minor, short revMajor, short revMinor)
          Initialization method taking and setting all parameters at once.
 void setMajor(short major)
          Sets the major field.
 void setMinor(short minor)
          Sets the minor field.
 void setRevMajor(short revMajor)
          Sets the revMajor field.
 void setRevMinor(short revMinor)
          Sets the revMinor field.
 String toString()
          Returns a String representation of the object.
 
Methods inherited from class Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TPM_V1_1

public static final TcTssVersion TPM_V1_1
This constant can be used for TPM 1.1 version comparisons


TPM_V1_2

public static final TcTssVersion TPM_V1_2
This constant can be used for TPM 1.2 version comparisons

Constructor Detail

TcTssVersion

public TcTssVersion()
Default constructor.

Method Detail

init

public TcTssVersion init(short major,
                         short minor,
                         short revMajor,
                         short revMinor)
Initialization method taking and setting all parameters at once.


getMajor

public short getMajor()
Returns contents of the major field.


setMajor

public void setMajor(short major)
Sets the major field.


getMinor

public short getMinor()
Returns contents of the minor field.


setMinor

public void setMinor(short minor)
Sets the minor field.


getRevMajor

public short getRevMajor()
Returns contents of the revMajor field.


setRevMajor

public void setRevMajor(short revMajor)
Sets the revMajor field.


getRevMinor

public short getRevMinor()
Returns contents of the revMinor field.


setRevMinor

public void setRevMinor(short revMinor)
Sets the revMinor field.


equals

public boolean equals(Object obj)
This method returns true if the two version numbers are equal, false otherwise.

Overrides:
equals in class Object

equalsMinMaj

public boolean equalsMinMaj(Object obj)
This method returns true if the two major and minor version numbers are equal, false otherwise. Note: revMinor and revMajor are ignored by this method.


equalsRevMinMaj

public boolean equalsRevMinMaj(Object obj)
This method returns true if the tow major and minor revisions numbers are equal, false otherwise. Note: minor and major are ignored by this method (only revMinor and revMajor) are taken into account.


toString

public String toString()
Returns a String representation of the object.

Overrides:
toString in class Object