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

Object
  extended by TcUuidFactory

public class TcUuidFactory
extends Object

This factory returns TcUuid objects for well known UUIDs (as specified by the TCG).


Method Summary
 TcTssUuid convertUuidJavaToTss(UUID uuid)
          This method converts a Java UUID (available in Java 1.5 onwards) into a TSS UUID.
 UUID convertUuidTssToJava(TcTssUuid tssUuid)
          This method converts a TSS UUID into a Java UUID (available in Java 1.5 onwards).
 TcTssUuid generateRandomUuid()
          This method generates a random universally unique identifier UUID that is used to identify keys stored in the persistent storage of the TSS.
static TcUuidFactory getInstance()
          This method returns the instance of the class (singleton pattern).
 TcTssUuid getUuidCRK()
          This method returns the UUID of the certified roaming key CRK (PS-system, no-auth, migratable (CMK)).
 TcTssUuid getUuidRK()
          This method returns the UUID of the roaming key RK (PS-system, no-auth, migratable).
 TcTssUuid getUuidSK()
          This method returns the UUID of the system specific storage key SK (PS-system, no-auth, non-migratable).
 TcTssUuid getUuidSRK()
          This method returns the UUID of the SRK (PS-system, no-auth, non-migratable).
 TcTssUuid getUuidU1SK1()
          This method returns the UUID of storage key #1 for user #1 U1SK1 (PS-user, no-auth, non-migratable).
 TcTssUuid getUuidU1SK2()
          This method returns the UUID of storage key #2 for user #1 U1SK2 (PS-user, auth, non-migratable).
 TcTssUuid getUuidU1SK3()
          This method returns the UUID of storage key #2 for user #1 U1SK3 (PS-user, no-auth, migratable).
 TcTssUuid getUuidU1SK4()
          This method returns the UUID of storage key #2 for user #1 U1SK4 (PS-user, auth, migratable).
 TcTssUuid getUuidU1SK5()
          This method returns the UUID of storage key #2 for user #1 U1SK5 (PS-user, no-auth, migratable (CMK)).
 TcTssUuid getUuidU1SK6()
          This method returns the UUID of storage key #2 for user #1 U1SK6 (PS-user, auth, migratable (CMK)).
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TcUuidFactory getInstance()
This method returns the instance of the class (singleton pattern).


getUuidSRK

public TcTssUuid getUuidSRK()
This method returns the UUID of the SRK (PS-system, no-auth, non-migratable).

Returns:
TCG fixed UUID of SRK.

getUuidSK

public TcTssUuid getUuidSK()
This method returns the UUID of the system specific storage key SK (PS-system, no-auth, non-migratable).

Returns:
TCG fixed UUID of SK

getUuidRK

public TcTssUuid getUuidRK()
This method returns the UUID of the roaming key RK (PS-system, no-auth, migratable).

Returns:
TCG fixed UUID of RK

getUuidCRK

public TcTssUuid getUuidCRK()
This method returns the UUID of the certified roaming key CRK (PS-system, no-auth, migratable (CMK)).

Returns:
TCG fixed UUID of CRK.

getUuidU1SK1

public TcTssUuid getUuidU1SK1()
This method returns the UUID of storage key #1 for user #1 U1SK1 (PS-user, no-auth, non-migratable).

Returns:
TCG fixed UUID of U1SK1.

getUuidU1SK2

public TcTssUuid getUuidU1SK2()
This method returns the UUID of storage key #2 for user #1 U1SK2 (PS-user, auth, non-migratable).

Returns:
TCG fixed UUID of U1SK2.

getUuidU1SK3

public TcTssUuid getUuidU1SK3()
This method returns the UUID of storage key #2 for user #1 U1SK3 (PS-user, no-auth, migratable).

Returns:
TCG fixed UUID of U1SK3

getUuidU1SK4

public TcTssUuid getUuidU1SK4()
This method returns the UUID of storage key #2 for user #1 U1SK4 (PS-user, auth, migratable).

Returns:
TCG fixed UUID of U1SK4

getUuidU1SK5

public TcTssUuid getUuidU1SK5()
This method returns the UUID of storage key #2 for user #1 U1SK5 (PS-user, no-auth, migratable (CMK)).

Returns:
TCG fixed UUID of U1SK5

getUuidU1SK6

public TcTssUuid getUuidU1SK6()
This method returns the UUID of storage key #2 for user #1 U1SK6 (PS-user, auth, migratable (CMK)).

Returns:
TCG fixed UUID of U1SK6

generateRandomUuid

public TcTssUuid generateRandomUuid()
This method generates a random universally unique identifier UUID that is used to identify keys stored in the persistent storage of the TSS.


convertUuidJavaToTss

public TcTssUuid convertUuidJavaToTss(UUID uuid)
This method converts a Java UUID (available in Java 1.5 onwards) into a TSS UUID.


convertUuidTssToJava

public UUID convertUuidTssToJava(TcTssUuid tssUuid)
This method converts a TSS UUID into a Java UUID (available in Java 1.5 onwards).