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

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

public class TcTpmCmdChangeAuth
extends TcTpmCmdCommon


Constructor Summary
TcTpmCmdChangeAuth()
           
 
Method Summary
static java.lang.Object[] TpmChangeAuth(TcIStreamDest dest, long parentHandle, int protocolID, TcTpmEncauth newAuth, int entityType, TcBlobData encData, TcTcsAuth inAuth1, TcTcsAuth inAuth2)
           
static java.lang.Object[] TpmChangeAuthOwner(TcIStreamDest dest, int protocolID, TcTpmEncauth newAuth, int entityType, TcTcsAuth inAuth1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcTpmCmdChangeAuth

public TcTpmCmdChangeAuth()
Method Detail

TpmChangeAuth

public static java.lang.Object[] TpmChangeAuth(TcIStreamDest dest,
                                               long parentHandle,
                                               int protocolID,
                                               TcTpmEncauth newAuth,
                                               int entityType,
                                               TcBlobData encData,
                                               TcTcsAuth inAuth1,
                                               TcTcsAuth inAuth2)
                                        throws TcTddlException,
                                               TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
inAuth1 - Authorization values for first authorization session.
inAuth2 - Authorization values for second authorization session.
parentHandle - Handle of the parent key to the entity.
protocolID - The protocol in use.
newAuth - The encrypted new AuthData for the entity
entityType - The type of entity to be modified
encData - The encrypted entity that is to be modified.
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... outgoing authorization for 1st session containing new nonceEven (TcTpmAuth)
  • 2 ... outgoing authorization for 2nd session containing new nonceEven (TcTpmAuth)
  • 3 ... The modified, encrypted entity. (TcBlobData)
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:
165

TpmChangeAuthOwner

public static java.lang.Object[] TpmChangeAuthOwner(TcIStreamDest dest,
                                                    int protocolID,
                                                    TcTpmEncauth newAuth,
                                                    int entityType,
                                                    TcTcsAuth inAuth1)
                                             throws TcTddlException,
                                                    TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
inAuth1 - Authorization values for first authorization session.
protocolID - The protocol in use.
newAuth - The encrypted new AuthData for theentity
entityType - The type of entity to be modified
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:
168