iaik.tc.tss.impl.java.tcs.pbg
Class TcTpmCmdAuthorization
java.lang.Object
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdAuthorization
public class TcTpmCmdAuthorization
- extends TcTpmCmdCommon
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcTpmCmdAuthorization
public TcTpmCmdAuthorization()
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 useentityValue
- 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 usekeyHandle
- Key for which delegated authority corresponds, or 0 if delegated
owneractivity. Only relevant if entityValue equals TcTpmDelegateKeyBlobentityValue
- 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 useentityValue
- 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