iaik.tc.tss.impl.java.tcs.pbg
Class TcTpmCmdSessMgmt
java.lang.Object
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdSessMgmt
public class TcTpmCmdSessMgmt
- extends TcTpmCmdCommon
Method Summary |
static java.lang.Object[] |
TpmKeyControlOwner(TcIStreamDest dest,
long keyHandle,
TcTpmPubkey pubKey,
long bitName,
boolean bitValue,
TcTpmNonce authLastNonceEven,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmLoadContext(TcIStreamDest dest,
long entityHandle,
boolean keepHandle,
long contextSz,
TcTpmContextBlob contextBlob)
|
static java.lang.Object[] |
TpmSaveContext(TcIStreamDest dest,
long handle,
long resourceType,
TcBlobData label)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcTpmCmdSessMgmt
public TcTpmCmdSessMgmt()
TpmKeyControlOwner
public static java.lang.Object[] TpmKeyControlOwner(TcIStreamDest dest,
long keyHandle,
TcTpmPubkey pubKey,
long bitName,
boolean bitValue,
TcTpmNonce authLastNonceEven,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.keyHandle
- The handle of a loaded key.pubKey
- The public key associated with the loaded keybitName
- The name of the bit to be modifiedbitValue
- The value to set the bit toauthLastNonceEven
- Even nonce previously generated by TPM to cover inputs
- 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:
- 218
TpmSaveContext
public static java.lang.Object[] TpmSaveContext(TcIStreamDest dest,
long handle,
long resourceType,
TcBlobData label)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.handle
- Handle of the resource being saved.resourceType
- The type of resource that is being savedlabel
- Label for identification purposes
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... The context blob (TcTpmContextBlob)
- 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:
- 221
TpmLoadContext
public static java.lang.Object[] TpmLoadContext(TcIStreamDest dest,
long entityHandle,
boolean keepHandle,
long contextSz,
TcTpmContextBlob contextBlob)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.entityHandle
- The handle the TPM MUST use to locate the entity tied to the OSAP/DSAP
sessionkeepHandle
- Indication if the handle MUST be preservedcontextSz
- The size of the following context blob.contextBlob
- The context blob
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... The handle assigned to the resource after it has been successfully loaded.
(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:
- 224