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

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

public class TcTpmCmdAuthorization
extends TcTpmCmdCommon


Constructor Summary
TcTpmCmdAuthorization()
           
 
Method Summary
static java.lang.Object[] TpmDSAP(TcIStreamDest dest, int entityType, long keyHandle, TcTpmNonce nonceOddDSAP, TcBlobData entityValue)
           
static java.lang.Object[] TpmOIAP(TcIStreamDest dest)
          The TPM_OIAP command allows the creation of an authorization session handle and the tracking of the handle by the TPM.
static java.lang.Object[] TpmOSAP(TcIStreamDest dest, int entityType, long entityValue, TcTpmNonce nonceOddOSAP)
           
static java.lang.Object[] TpmSetOwnerPointer(TcIStreamDest dest, int entityType, long entityValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcTpmCmdAuthorization

public TcTpmCmdAuthorization()
Method Detail

TpmOIAP

public static java.lang.Object[] TpmOIAP(TcIStreamDest dest)
                                  throws TcTddlException,
                                         TcTpmException
The TPM_OIAP command allows the creation of an authorization session handle and the tracking of the handle by the TPM. The TPM generates the handle and nonce.

Parameters:
dest - The destination where the byte stream is written to.
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... Handle that TPM creates that points to the authorization state. (long)
  • 2 ... Nonce generated by TPM (new nonce even). (TcTpmNonce)
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:
169

TpmOSAP

public static java.lang.Object[] TpmOSAP(TcIStreamDest dest,
                                         int entityType,
                                         long entityValue,
                                         TcTpmNonce nonceOddOSAP)
                                  throws TcTddlException,
                                         TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
entityType - The type of entity in use
entityValue - The selection value based on entityType, e.g. a keyHandle #
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... Handle that TPM creates that points to the authorization state. (long)
  • 2 ... Nonce generated by TPM and associated with session. (TcTpmNonce)
  • 3 ... Nonce generated by TPM and associated with shared secret. (TcTpmNonce)
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:
173

TpmDSAP

public static java.lang.Object[] TpmDSAP(TcIStreamDest dest,
                                         int entityType,
                                         long keyHandle,
                                         TcTpmNonce nonceOddDSAP,
                                         TcBlobData entityValue)
                                  throws TcTddlException,
                                         TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
entityType - The type of delegation information to use
keyHandle - Key for which delegated authority corresponds, or 0 if delegated owneractivity. Only relevant if entityValue equals TcTpmDelegateKeyBlob
entityValue - TcTpmDelegateKeyBlob or TcTpmDelegateOwnerBlob or index MUST not be empty If entityType is TPM_ET_DEL_ROW thenentityValue is a long
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... Handle that TPM creates that points to the authorization state. (long)
  • 2 ... Nonce generated by TPM and associated with session. (TcTpmNonce)
  • 3 ... Nonce generated by TPM and associated with shared secret. (TcTpmNonce)
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:
178

TpmSetOwnerPointer

public static java.lang.Object[] TpmSetOwnerPointer(TcIStreamDest dest,
                                                    int entityType,
                                                    long entityValue)
                                             throws TcTddlException,
                                                    TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
entityType - The type of entity in use
entityValue - The selection value based on entityType
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
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:
182