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

java.lang.Object
  extended by iaik.tc.tss.api.structs.tsp.TcTssUuid

public class TcTssUuid
extends java.lang.Object

This structure provides information about an UUID identifier that is unique within a particular key hierarchy for a given platform. Several UUIDs are reserved for particular keys such as the SRK. These UUIDs are used to register keys in the persistent storage of the TSS Key Manager.

TSS Spec. 1.2 Errata A, page number:
106
TSS Spec. 1.10 Golden, Aug. 20, 2003, page number:
48

Constructor Summary
TcTssUuid()
          Default constructor.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of the object.
 boolean equals(java.lang.Object obj)
          Compares two UUIDs.
 short getClockSeqHigh()
          Returns contents of the clockSeqHigh field.
 short getClockSeqLow()
          Returns contents of the clockSeqLow field.
 short[] getNode()
          Returns contents of the node field.
 int getTimeHigh()
          Returns contents of the timeHigh field.
 long getTimeLow()
          Returns contents of the timeLow field.
 int getTimeMid()
          Returns contents of the timeMid field.
 TcTssUuid init(long timeLow, int timeMid, int timeHigh, short clockSeqLow, short clockSeqHigh, short[] node)
          Constructor taking all required arguments to fully initialize the UUID.
 TcTssUuid initString(java.lang.String uuid)
          Constructor taking all required arguments as a string to fully initialize the UUID.
 void setClockSeqHigh(short clockSeqHigh)
          Sets the clockSeqHigh field.
 void setClockSeqLow(short clockSeqLow)
          Sets the clockSeqLow field.
 void setNode(short[] node)
          Sets the node field.
 void setTimeHigh(int timeHigh)
          Sets the timeHigh field.
 void setTimeLow(long timeLow)
          Sets the timeLow field.
 void setTimeMid(int timeMid)
          Sets the timeMid field.
 java.lang.String toString()
          Returns a String representation of the object.
 java.lang.String toStringNoPrefix()
          Returns a String representation of the object.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TcTssUuid

public TcTssUuid()
Default constructor.

Method Detail

init

public TcTssUuid init(long timeLow,
                      int timeMid,
                      int timeHigh,
                      short clockSeqLow,
                      short clockSeqHigh,
                      short[] node)
Constructor taking all required arguments to fully initialize the UUID.


equals

public boolean equals(java.lang.Object obj)
Compares two UUIDs.

Overrides:
equals in class java.lang.Object
Returns:
true if uuids are the same, false otherwise

toString

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

Overrides:
toString in class java.lang.Object

toStringNoPrefix

public java.lang.String toStringNoPrefix()
Returns a String representation of the object.


initString

public TcTssUuid initString(java.lang.String uuid)
Constructor taking all required arguments as a string to fully initialize the UUID. The format expected for the UUID string is the same as produced by the toStringNoPrefix() method.


clone

public java.lang.Object clone()
Returns a clone of the object.

Overrides:
clone in class java.lang.Object

getClockSeqHigh

public short getClockSeqHigh()
Returns contents of the clockSeqHigh field.


setClockSeqHigh

public void setClockSeqHigh(short clockSeqHigh)
Sets the clockSeqHigh field.


getClockSeqLow

public short getClockSeqLow()
Returns contents of the clockSeqLow field.


setClockSeqLow

public void setClockSeqLow(short clockSeqLow)
Sets the clockSeqLow field.


getNode

public short[] getNode()
Returns contents of the node field.


setNode

public void setNode(short[] node)
Sets the node field.


getTimeHigh

public int getTimeHigh()
Returns contents of the timeHigh field.


setTimeHigh

public void setTimeHigh(int timeHigh)
Sets the timeHigh field.


getTimeLow

public long getTimeLow()
Returns contents of the timeLow field.


setTimeLow

public void setTimeLow(long timeLow)
Sets the timeLow field.


getTimeMid

public int getTimeMid()
Returns contents of the timeMid field.


setTimeMid

public void setTimeMid(int timeMid)
Sets the timeMid field.