iaik.tc.tss.impl.java.tcs.kcmgr
Class TcTcsKeyHandleMgr

java.lang.Object
  extended by iaik.tc.tss.impl.java.tcs.kcmgr.TcTcsKeyHandleMgr

public class TcTcsKeyHandleMgr
extends java.lang.Object


Method Summary
static TcTcsKeyHandleMgr getInstance()
          This class can only be instantiated once (Singleton).
 long getTcsKhForTpmKh(long khTpm)
          This method returns the TCS key handle for the given TPM key handle.
 long getTpmKhForTcsKh(long khTcs)
          This method returns the TPM key handle for the given TCS key handle.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TcTcsKeyHandleMgr getInstance()
                                     throws TcTddlException,
                                            TcTpmException
This class can only be instantiated once (Singleton).

Throws:
TcTddlException
TcTpmException

getTpmKhForTcsKh

public long getTpmKhForTcsKh(long khTcs)
                      throws TcTcsException
This method returns the TPM key handle for the given TCS key handle. If no matching TCS key handle was found, and exception is thrown.

Parameters:
khTcs - TCS key handle to find the TPM key handle for.
Returns:
The TPM key handle corresponding to the given TCS key handle.
Throws:
TcTcsException - This exception is thrown if no key with the given TCS key handle could be found.

getTcsKhForTpmKh

public long getTcsKhForTpmKh(long khTpm)
                      throws TcTcsException
This method returns the TCS key handle for the given TPM key handle. If no matching TPM key handle was found, and exception is thrown.

Parameters:
khTpm - TPM key handle to find the TCS key handle for.
Returns:
The TCS key handle corresponding to the given TPM key handle.
Throws:
TcTcsException - This exception is thrown if no key with the given TPM key handle could be found.