iaik.tc.tss.impl.java.tcs.pbg
Class TcTpmCmdDeprDir

java.lang.Object
  extended by iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
      extended by iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdDeprDir

public class TcTpmCmdDeprDir
extends TcTpmCmdCommon


Constructor Summary
TcTpmCmdDeprDir()
           
 
Method Summary
static java.lang.Object[] TpmDirRead(TcIStreamDest dest, long dirIndex)
           
static java.lang.Object[] TpmDirWriteAuth(TcIStreamDest dest, long dirIndex, TcTpmDigest newContents, TcTcsAuth inAuth1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcTpmCmdDeprDir

public TcTpmCmdDeprDir()
Method Detail

TpmDirWriteAuth

public static java.lang.Object[] TpmDirWriteAuth(TcIStreamDest dest,
                                                 long dirIndex,
                                                 TcTpmDigest newContents,
                                                 TcTcsAuth inAuth1)
                                          throws TcTddlException,
                                                 TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
inAuth1 - Authorization values for first authorization session.
dirIndex - Index of the DIR
newContents - New value to be stored in named DIR
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
Throws:
TcTpmException - This exception indicates that a TPM error has occurred. The specific error code id held by the exception.
TcTddlException
TPM 1.2 Spec, page number:
293

TpmDirRead

public static java.lang.Object[] TpmDirRead(TcIStreamDest dest,
                                            long dirIndex)
                                     throws TcTddlException,
                                            TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
dirIndex - Index of the DIR to be read
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... The current contents of the named DIR (TcTpmDigest)
Throws:
TcTpmException - This exception indicates that a TPM error has occurred. The specific error code id held by the exception.
TcTddlException
TPM 1.2 Spec, page number:
296