iaik.tc.tss.api.constants.tpm
Class TcTpmErrors

java.lang.Object
  extended by iaik.tc.tss.api.constants.tpm.TcTpmErrors

public class TcTpmErrors
extends java.lang.Object

This class contains error codes returned by the TPM to indicate error conditions.


Field Summary
static long ERR_TYPE_TPM_FATAL
          Fatal TPM defined error.
static long ERR_TYPE_TPM_NONFATAL
          Fatal vendor defined error.
static long ERR_TYPE_TPM_SUCCESS
          No Error (TPM success)
static long ERR_TYPE_UNKNOWN
          Unknown error type.
static long ERR_TYPE_VENDOR_FATAL
          Non-fatal TPM defined error.
static long ERR_TYPE_VENDOR_NONFATAL
          Non-fatal vendor defined error.
static long TPM_E_AREA_LOCKED
          The NV area is locked and not writable
static long TPM_E_AUDITFAIL_SUCCESSFUL
          TPM audit construction failed and the underlying command was returning success
static long TPM_E_AUDITFAIL_UNSUCCESSFUL
          TPM audit construction failed and the underlying command was returning a failure code also
static long TPM_E_AUDITFAILURE
          An operation completed successfully but the auditing of that operation failed.
static long TPM_E_AUTH_CONFLICT
          NV_LoadKey blob requires both owner and blob authorization
static long TPM_E_AUTH2FAIL
          The authorization for the second key in a 2 key function failed authorization
static long TPM_E_AUTHFAIL
          Authentication failed
static long TPM_E_BAD_ATTRIBUTES
          The NV area attributes conflict
static long TPM_E_BAD_COUNTER
          The counter handle is incorrect
static long TPM_E_BAD_DATASIZE
          The size of the data (or blob) parameter is bad or inconsistent with the referenced key
static long TPM_E_BAD_DELEGATE
          Delegation is not correct
static long TPM_E_BAD_HANDLE
          The handle is incorrect
static long TPM_E_BAD_KEY_PROPERTY
          The key properties in TPM_KEY_PARMs are not supported by this TPM
static long TPM_E_BAD_LOCALITY
          The locality is incorrect for the attempted operation
static long TPM_E_BAD_MIGRATION
          The migration properties of this key are incorrect.
static long TPM_E_BAD_MODE
          A mode parameter is bad, such as capArea or subCapArea for TPM_GetCapability, physicalPresence parameter for TPM_PhysicalPresence, or migrationType for TPM_CreateMigrationBlob.
static long TPM_E_BAD_ORDINAL
          The ordinal was unknown or inconsistent
static long TPM_E_BAD_PARAM_SIZE
          The paramSize argument to the command has the incorrect value
static long TPM_E_BAD_PARAMETER
          One or more parameter is bad
static long TPM_E_BAD_PRESENCE
          Either the physicalPresence or physicalPresenceLock bits have the wrong value
static long TPM_E_BAD_SCHEME
          The signature or encryption scheme for this key is incorrect or not permitted in this situation.
static long TPM_E_BAD_SIGNATURE
          Bad signature of CMK ticket
static long TPM_E_BAD_TYPE
          Make identity blob not properly typed
static long TPM_E_BAD_VERSION
          The TPM cannot perform this version of the capability
static long TPM_E_BADCONTEXT
          The context blob is invalid
static long TPM_E_BADINDEX
          The index to a PCR, DIR or other register is incorrect
static long TPM_E_BADTAG
          The tag value sent to for a command is invalid
static long TPM_E_BASE
           
static long TPM_E_CLEAR_DISABLED
          The clear disable flag is set and all clear operations now require physical access
static long TPM_E_CONTEXT_GAP
          The gap between saved context counts is too large
static long TPM_E_DAA_INPUT_DATA0
          The consistency check on DAA parameter inputData0 has failed.
static long TPM_E_DAA_INPUT_DATA1
          The consistency check on DAA parameter inputData1 has failed.
static long TPM_E_DAA_ISSUER_SETTINGS
          The consistency check on DAA_issuerSettings has failed.
static long TPM_E_DAA_ISSUER_VALIDITY
          The issuer's validity check has detected an inconsistency
static long TPM_E_DAA_RESOURCES
          The DAA command has no resources available to execute the command
static long TPM_E_DAA_STAGE
          The atomic process indicated by the submitted DAA command is not the expected process.
static long TPM_E_DAA_TPM_SETTINGS
          The consistency check on DAA_tpmSpecific has failed.
static long TPM_E_DAA_WRONG_W
          The consistency check on w has failed.
static long TPM_E_DEACTIVATED
          The TPM is deactivated
static long TPM_E_DECRYPT_ERROR
          The decryption process did not complete.
static long TPM_E_DEFEND_LOCK_RUNNING
          The TPM is defending against dictionary attacks and is in some time-out period.
static long TPM_E_DELEGATE_ADMIN
          Delegation table management not enabled
static long TPM_E_DELEGATE_FAMILY
          Attempt to manage a family other then the delegated family
static long TPM_E_DELEGATE_LOCK
          The delegate administration is locked
static long TPM_E_DISABLED
          The TPM is disabled
static long TPM_E_DISABLED_CMD
          The target command has been disabled
static long TPM_E_DOING_SELFTEST
          The TPM is currently executing a full self test
static long TPM_E_ENCRYPT_ERROR
          The encryption process had a problem.
static long TPM_E_FAIL
          The operation failed
static long TPM_E_FAILEDSELFTEST
          Self-test has failed and the TPM has shutdown.
static long TPM_E_FAMILYCOUNT
          The family count value does not match
static long TPM_E_INAPPROPRIATE_ENC
          Unacceptable encryption scheme
static long TPM_E_INAPPROPRIATE_SIG
          Signed data cannot include additional DER information
static long TPM_E_INSTALL_DISABLED
          The ability to install an owner is disabled
static long TPM_E_INVALID_AUTHHANDLE
          An invalid handle was used.
static long TPM_E_INVALID_FAMILY
          The command is attempting to use an invalid family ID
static long TPM_E_INVALID_KEYHANDLE
          The key handle can not be interpreted
static long TPM_E_INVALID_KEYUSAGE
          The usage of a key is not allowed
static long TPM_E_INVALID_PCR_INFO
          PCR information could not be interpreted
static long TPM_E_INVALID_POSTINIT
          The command was received in the wrong sequence relative to TPM_Init and a subsequent TPM_Startup
static long TPM_E_INVALID_RESOURCE
          When saving context identified resource type does not match actual resource
static long TPM_E_INVALID_STRUCTURE
          The structure tag and version are invalid or inconsistent
static long TPM_E_IOERROR
          An IO error occurred transmitting information to the TPM
static long TPM_E_KEY_NOTSUPPORTED
          Wrong operation to load an NV key
static long TPM_E_KEY_OWNER_CONTROL
          The key is under control of the TPM Owner and can only be evicted by the TPM Owner.
static long TPM_E_KEYNOTFOUND
          The key handle points to an invalid key
static long TPM_E_MA_AUTHORITY
          Incorrect migration authority
static long TPM_E_MA_DESTINATION
          Migration destination not authenticated
static long TPM_E_MA_SOURCE
          Migration source incorrect
static long TPM_E_MA_TICKET_SIGNATURE
          Migration authority signature validation failure
static long TPM_E_MAXNVWRITES
          The maximum number of NV writes without an owner has been exceeded
static long TPM_E_MIGRATEFAIL
          Migration authorization failed
static long TPM_E_NEEDS_SELFTEST
          SelfTestFull has not been run
static long TPM_E_NO_ENDORSEMENT
          The TPM has no EK installed
static long TPM_E_NO_NV_PERMISSION
          The permission to manipulate the NV storage is not available
static long TPM_E_NO_WRAP_TRANSPORT
          The TPM does not allow for wrapped transport sessions
static long TPM_E_NOCONTEXTSPACE
          There is no room in the context list for additional contexts
static long TPM_E_NON_FATAL
           
static long TPM_E_NOOPERATOR
          No operator AuthData value is set
static long TPM_E_NOSPACE
          No room to load key.
static long TPM_E_NOSRK
          There is no SRK set
static long TPM_E_NOT_FULLWRITE
          The write is not a complete write of the area
static long TPM_E_NOTFIPS
          The TPM is attempting to execute a command only available when in FIPS mode
static long TPM_E_NOTLOCAL
          Attempt to reset a PCR register that requires locality and locality modifier not part of command transport
static long TPM_E_NOTRESETABLE
          Attempt to reset a PCR register that does not have the resettable attribute
static long TPM_E_NOTSEALED_BLOB
          An encrypted blob is invalid or was not created by this TPM
static long TPM_E_OWNER_CONTROL
          Attempt to context save a owner evict controlled key
static long TPM_E_OWNER_SET
          There is already an Owner
static long TPM_E_PER_NOWRITE
          There is no protection on the write to the NV area
static long TPM_E_PERMANENTEK
          Attempt to revoke the EK and the EK is not revocable
static long TPM_E_READ_ONLY
          The NV area is read only and can't be written to
static long TPM_E_REQUIRES_SIGN
          The operation requires a signed command
static long TPM_E_RESOURCEMISSING
          The resource pointed to by context is not loaded
static long TPM_E_RESOURCES
          The TPM has insufficient internal resources to perform the requested action.
static long TPM_E_RETRY
          The TPM is too busy to respond to the command immediately, but the command could be resubmitted at a later time.
static long TPM_E_SHA_ERROR
          The calculation is unable to proceed because the existing SHA-1 thread has already encountered an error.
static long TPM_E_SHA_THREAD
          There is no existing SHA-1 thread.
static long TPM_E_SHORTRANDOM
          A random string was too short
static long TPM_E_SIZE
          The TPM does not have the space to perform the operation.
static long TPM_E_TBS_COMMAND_BLOCKED
          This error code is returned by the TBS of Windows Vista if a command is blocked by the TBS.
static long TPM_E_TOOMANYCONTEXTS
          Too many contexts held by the TPM
static long TPM_E_TRANSPORT_NOTEXCLUSIVE
          There was a command executed outside of an exclusive transport session
static long TPM_E_WRITE_LOCKED
          The NV area has already been written to
static long TPM_E_WRONG_ENTITYTYPE
          The submitted entity type is not allowed
static long TPM_E_WRONGPCRVAL
          The named PCR value does not match the current PCR value.
static long TPM_SUCCESS
          Successful completion of the TPM operation.
 
Method Summary
static java.lang.String errToString(long errCode)
          This method returns an error message including the error code, the error type and the error message.
static java.lang.String getErrMsg(long errCode)
          This method returns the error string for the given error code.
static long getErrorType(long errCode)
          This method takes an error received from the TPM and returns the specific type of the error (one of ERR_TYPE_XXX).
static java.lang.String getErrorTypeAsString(long errCode)
          This method takes an error received from the TPM and returns a String representation the specific type of the error.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TPM_E_BASE

public static final long TPM_E_BASE
See Also:
Constant Field Values

TPM_E_NON_FATAL

public static final long TPM_E_NON_FATAL
See Also:
Constant Field Values

TPM_SUCCESS

public static final long TPM_SUCCESS
Successful completion of the TPM operation.

See Also:
Constant Field Values

TPM_E_AUTHFAIL

public static final long TPM_E_AUTHFAIL
Authentication failed

See Also:
Constant Field Values

TPM_E_BADINDEX

public static final long TPM_E_BADINDEX
The index to a PCR, DIR or other register is incorrect

See Also:
Constant Field Values

TPM_E_BAD_PARAMETER

public static final long TPM_E_BAD_PARAMETER
One or more parameter is bad

See Also:
Constant Field Values

TPM_E_AUDITFAILURE

public static final long TPM_E_AUDITFAILURE
An operation completed successfully but the auditing of that operation failed.

See Also:
Constant Field Values

TPM_E_CLEAR_DISABLED

public static final long TPM_E_CLEAR_DISABLED
The clear disable flag is set and all clear operations now require physical access

See Also:
Constant Field Values

TPM_E_DEACTIVATED

public static final long TPM_E_DEACTIVATED
The TPM is deactivated

See Also:
Constant Field Values

TPM_E_DISABLED

public static final long TPM_E_DISABLED
The TPM is disabled

See Also:
Constant Field Values

TPM_E_DISABLED_CMD

public static final long TPM_E_DISABLED_CMD
The target command has been disabled

See Also:
Constant Field Values

TPM_E_FAIL

public static final long TPM_E_FAIL
The operation failed

See Also:
Constant Field Values

TPM_E_BAD_ORDINAL

public static final long TPM_E_BAD_ORDINAL
The ordinal was unknown or inconsistent

See Also:
Constant Field Values

TPM_E_INSTALL_DISABLED

public static final long TPM_E_INSTALL_DISABLED
The ability to install an owner is disabled

See Also:
Constant Field Values

TPM_E_INVALID_KEYHANDLE

public static final long TPM_E_INVALID_KEYHANDLE
The key handle can not be interpreted

See Also:
Constant Field Values

TPM_E_KEYNOTFOUND

public static final long TPM_E_KEYNOTFOUND
The key handle points to an invalid key

See Also:
Constant Field Values

TPM_E_INAPPROPRIATE_ENC

public static final long TPM_E_INAPPROPRIATE_ENC
Unacceptable encryption scheme

See Also:
Constant Field Values

TPM_E_MIGRATEFAIL

public static final long TPM_E_MIGRATEFAIL
Migration authorization failed

See Also:
Constant Field Values

TPM_E_INVALID_PCR_INFO

public static final long TPM_E_INVALID_PCR_INFO
PCR information could not be interpreted

See Also:
Constant Field Values

TPM_E_NOSPACE

public static final long TPM_E_NOSPACE
No room to load key.

See Also:
Constant Field Values

TPM_E_NOSRK

public static final long TPM_E_NOSRK
There is no SRK set

See Also:
Constant Field Values

TPM_E_NOTSEALED_BLOB

public static final long TPM_E_NOTSEALED_BLOB
An encrypted blob is invalid or was not created by this TPM

See Also:
Constant Field Values

TPM_E_OWNER_SET

public static final long TPM_E_OWNER_SET
There is already an Owner

See Also:
Constant Field Values

TPM_E_RESOURCES

public static final long TPM_E_RESOURCES
The TPM has insufficient internal resources to perform the requested action.

See Also:
Constant Field Values

TPM_E_SHORTRANDOM

public static final long TPM_E_SHORTRANDOM
A random string was too short

See Also:
Constant Field Values

TPM_E_SIZE

public static final long TPM_E_SIZE
The TPM does not have the space to perform the operation.

See Also:
Constant Field Values

TPM_E_WRONGPCRVAL

public static final long TPM_E_WRONGPCRVAL
The named PCR value does not match the current PCR value.

See Also:
Constant Field Values

TPM_E_BAD_PARAM_SIZE

public static final long TPM_E_BAD_PARAM_SIZE
The paramSize argument to the command has the incorrect value

See Also:
Constant Field Values

TPM_E_SHA_THREAD

public static final long TPM_E_SHA_THREAD
There is no existing SHA-1 thread.

See Also:
Constant Field Values

TPM_E_SHA_ERROR

public static final long TPM_E_SHA_ERROR
The calculation is unable to proceed because the existing SHA-1 thread has already encountered an error.

See Also:
Constant Field Values

TPM_E_FAILEDSELFTEST

public static final long TPM_E_FAILEDSELFTEST
Self-test has failed and the TPM has shutdown.

See Also:
Constant Field Values

TPM_E_AUTH2FAIL

public static final long TPM_E_AUTH2FAIL
The authorization for the second key in a 2 key function failed authorization

See Also:
Constant Field Values

TPM_E_BADTAG

public static final long TPM_E_BADTAG
The tag value sent to for a command is invalid

See Also:
Constant Field Values

TPM_E_IOERROR

public static final long TPM_E_IOERROR
An IO error occurred transmitting information to the TPM

See Also:
Constant Field Values

TPM_E_ENCRYPT_ERROR

public static final long TPM_E_ENCRYPT_ERROR
The encryption process had a problem.

See Also:
Constant Field Values

TPM_E_DECRYPT_ERROR

public static final long TPM_E_DECRYPT_ERROR
The decryption process did not complete.

See Also:
Constant Field Values

TPM_E_INVALID_AUTHHANDLE

public static final long TPM_E_INVALID_AUTHHANDLE
An invalid handle was used.

See Also:
Constant Field Values

TPM_E_NO_ENDORSEMENT

public static final long TPM_E_NO_ENDORSEMENT
The TPM has no EK installed

See Also:
Constant Field Values

TPM_E_INVALID_KEYUSAGE

public static final long TPM_E_INVALID_KEYUSAGE
The usage of a key is not allowed

See Also:
Constant Field Values

TPM_E_WRONG_ENTITYTYPE

public static final long TPM_E_WRONG_ENTITYTYPE
The submitted entity type is not allowed

See Also:
Constant Field Values

TPM_E_INVALID_POSTINIT

public static final long TPM_E_INVALID_POSTINIT
The command was received in the wrong sequence relative to TPM_Init and a subsequent TPM_Startup

See Also:
Constant Field Values

TPM_E_INAPPROPRIATE_SIG

public static final long TPM_E_INAPPROPRIATE_SIG
Signed data cannot include additional DER information

See Also:
Constant Field Values

TPM_E_BAD_KEY_PROPERTY

public static final long TPM_E_BAD_KEY_PROPERTY
The key properties in TPM_KEY_PARMs are not supported by this TPM

See Also:
Constant Field Values

TPM_E_BAD_MIGRATION

public static final long TPM_E_BAD_MIGRATION
The migration properties of this key are incorrect.

See Also:
Constant Field Values

TPM_E_BAD_SCHEME

public static final long TPM_E_BAD_SCHEME
The signature or encryption scheme for this key is incorrect or not permitted in this situation.

See Also:
Constant Field Values

TPM_E_BAD_DATASIZE

public static final long TPM_E_BAD_DATASIZE
The size of the data (or blob) parameter is bad or inconsistent with the referenced key

See Also:
Constant Field Values

TPM_E_BAD_MODE

public static final long TPM_E_BAD_MODE
A mode parameter is bad, such as capArea or subCapArea for TPM_GetCapability, physicalPresence parameter for TPM_PhysicalPresence, or migrationType for TPM_CreateMigrationBlob.

See Also:
Constant Field Values

TPM_E_BAD_PRESENCE

public static final long TPM_E_BAD_PRESENCE
Either the physicalPresence or physicalPresenceLock bits have the wrong value

See Also:
Constant Field Values

TPM_E_BAD_VERSION

public static final long TPM_E_BAD_VERSION
The TPM cannot perform this version of the capability

See Also:
Constant Field Values

TPM_E_NO_WRAP_TRANSPORT

public static final long TPM_E_NO_WRAP_TRANSPORT
The TPM does not allow for wrapped transport sessions

See Also:
Constant Field Values

TPM_E_AUDITFAIL_UNSUCCESSFUL

public static final long TPM_E_AUDITFAIL_UNSUCCESSFUL
TPM audit construction failed and the underlying command was returning a failure code also

See Also:
Constant Field Values

TPM_E_AUDITFAIL_SUCCESSFUL

public static final long TPM_E_AUDITFAIL_SUCCESSFUL
TPM audit construction failed and the underlying command was returning success

See Also:
Constant Field Values

TPM_E_NOTRESETABLE

public static final long TPM_E_NOTRESETABLE
Attempt to reset a PCR register that does not have the resettable attribute

See Also:
Constant Field Values

TPM_E_NOTLOCAL

public static final long TPM_E_NOTLOCAL
Attempt to reset a PCR register that requires locality and locality modifier not part of command transport

See Also:
Constant Field Values

TPM_E_BAD_TYPE

public static final long TPM_E_BAD_TYPE
Make identity blob not properly typed

See Also:
Constant Field Values

TPM_E_INVALID_RESOURCE

public static final long TPM_E_INVALID_RESOURCE
When saving context identified resource type does not match actual resource

See Also:
Constant Field Values

TPM_E_NOTFIPS

public static final long TPM_E_NOTFIPS
The TPM is attempting to execute a command only available when in FIPS mode

See Also:
Constant Field Values

TPM_E_INVALID_FAMILY

public static final long TPM_E_INVALID_FAMILY
The command is attempting to use an invalid family ID

See Also:
Constant Field Values

TPM_E_NO_NV_PERMISSION

public static final long TPM_E_NO_NV_PERMISSION
The permission to manipulate the NV storage is not available

See Also:
Constant Field Values

TPM_E_REQUIRES_SIGN

public static final long TPM_E_REQUIRES_SIGN
The operation requires a signed command

See Also:
Constant Field Values

TPM_E_KEY_NOTSUPPORTED

public static final long TPM_E_KEY_NOTSUPPORTED
Wrong operation to load an NV key

See Also:
Constant Field Values

TPM_E_AUTH_CONFLICT

public static final long TPM_E_AUTH_CONFLICT
NV_LoadKey blob requires both owner and blob authorization

See Also:
Constant Field Values

TPM_E_AREA_LOCKED

public static final long TPM_E_AREA_LOCKED
The NV area is locked and not writable

See Also:
Constant Field Values

TPM_E_BAD_LOCALITY

public static final long TPM_E_BAD_LOCALITY
The locality is incorrect for the attempted operation

See Also:
Constant Field Values

TPM_E_READ_ONLY

public static final long TPM_E_READ_ONLY
The NV area is read only and can't be written to

See Also:
Constant Field Values

TPM_E_PER_NOWRITE

public static final long TPM_E_PER_NOWRITE
There is no protection on the write to the NV area

See Also:
Constant Field Values

TPM_E_FAMILYCOUNT

public static final long TPM_E_FAMILYCOUNT
The family count value does not match

See Also:
Constant Field Values

TPM_E_WRITE_LOCKED

public static final long TPM_E_WRITE_LOCKED
The NV area has already been written to

See Also:
Constant Field Values

TPM_E_BAD_ATTRIBUTES

public static final long TPM_E_BAD_ATTRIBUTES
The NV area attributes conflict

See Also:
Constant Field Values

TPM_E_INVALID_STRUCTURE

public static final long TPM_E_INVALID_STRUCTURE
The structure tag and version are invalid or inconsistent

See Also:
Constant Field Values

TPM_E_KEY_OWNER_CONTROL

public static final long TPM_E_KEY_OWNER_CONTROL
The key is under control of the TPM Owner and can only be evicted by the TPM Owner.

See Also:
Constant Field Values

TPM_E_BAD_COUNTER

public static final long TPM_E_BAD_COUNTER
The counter handle is incorrect

See Also:
Constant Field Values

TPM_E_NOT_FULLWRITE

public static final long TPM_E_NOT_FULLWRITE
The write is not a complete write of the area

See Also:
Constant Field Values

TPM_E_CONTEXT_GAP

public static final long TPM_E_CONTEXT_GAP
The gap between saved context counts is too large

See Also:
Constant Field Values

TPM_E_MAXNVWRITES

public static final long TPM_E_MAXNVWRITES
The maximum number of NV writes without an owner has been exceeded

See Also:
Constant Field Values

TPM_E_NOOPERATOR

public static final long TPM_E_NOOPERATOR
No operator AuthData value is set

See Also:
Constant Field Values

TPM_E_RESOURCEMISSING

public static final long TPM_E_RESOURCEMISSING
The resource pointed to by context is not loaded

See Also:
Constant Field Values

TPM_E_DELEGATE_LOCK

public static final long TPM_E_DELEGATE_LOCK
The delegate administration is locked

See Also:
Constant Field Values

TPM_E_DELEGATE_FAMILY

public static final long TPM_E_DELEGATE_FAMILY
Attempt to manage a family other then the delegated family

See Also:
Constant Field Values

TPM_E_DELEGATE_ADMIN

public static final long TPM_E_DELEGATE_ADMIN
Delegation table management not enabled

See Also:
Constant Field Values

TPM_E_TRANSPORT_NOTEXCLUSIVE

public static final long TPM_E_TRANSPORT_NOTEXCLUSIVE
There was a command executed outside of an exclusive transport session

See Also:
Constant Field Values

TPM_E_OWNER_CONTROL

public static final long TPM_E_OWNER_CONTROL
Attempt to context save a owner evict controlled key

See Also:
Constant Field Values

TPM_E_DAA_RESOURCES

public static final long TPM_E_DAA_RESOURCES
The DAA command has no resources available to execute the command

See Also:
Constant Field Values

TPM_E_DAA_INPUT_DATA0

public static final long TPM_E_DAA_INPUT_DATA0
The consistency check on DAA parameter inputData0 has failed.

See Also:
Constant Field Values

TPM_E_DAA_INPUT_DATA1

public static final long TPM_E_DAA_INPUT_DATA1
The consistency check on DAA parameter inputData1 has failed.

See Also:
Constant Field Values

TPM_E_DAA_ISSUER_SETTINGS

public static final long TPM_E_DAA_ISSUER_SETTINGS
The consistency check on DAA_issuerSettings has failed.

See Also:
Constant Field Values

TPM_E_DAA_TPM_SETTINGS

public static final long TPM_E_DAA_TPM_SETTINGS
The consistency check on DAA_tpmSpecific has failed.

See Also:
Constant Field Values

TPM_E_DAA_STAGE

public static final long TPM_E_DAA_STAGE
The atomic process indicated by the submitted DAA command is not the expected process.

See Also:
Constant Field Values

TPM_E_DAA_ISSUER_VALIDITY

public static final long TPM_E_DAA_ISSUER_VALIDITY
The issuer's validity check has detected an inconsistency

See Also:
Constant Field Values

TPM_E_DAA_WRONG_W

public static final long TPM_E_DAA_WRONG_W
The consistency check on w has failed.

See Also:
Constant Field Values

TPM_E_BAD_HANDLE

public static final long TPM_E_BAD_HANDLE
The handle is incorrect

See Also:
Constant Field Values

TPM_E_BAD_DELEGATE

public static final long TPM_E_BAD_DELEGATE
Delegation is not correct

See Also:
Constant Field Values

TPM_E_BADCONTEXT

public static final long TPM_E_BADCONTEXT
The context blob is invalid

See Also:
Constant Field Values

TPM_E_TOOMANYCONTEXTS

public static final long TPM_E_TOOMANYCONTEXTS
Too many contexts held by the TPM

See Also:
Constant Field Values

TPM_E_MA_TICKET_SIGNATURE

public static final long TPM_E_MA_TICKET_SIGNATURE
Migration authority signature validation failure

See Also:
Constant Field Values

TPM_E_MA_DESTINATION

public static final long TPM_E_MA_DESTINATION
Migration destination not authenticated

See Also:
Constant Field Values

TPM_E_MA_SOURCE

public static final long TPM_E_MA_SOURCE
Migration source incorrect

See Also:
Constant Field Values

TPM_E_MA_AUTHORITY

public static final long TPM_E_MA_AUTHORITY
Incorrect migration authority

See Also:
Constant Field Values

TPM_E_PERMANENTEK

public static final long TPM_E_PERMANENTEK
Attempt to revoke the EK and the EK is not revocable

See Also:
Constant Field Values

TPM_E_BAD_SIGNATURE

public static final long TPM_E_BAD_SIGNATURE
Bad signature of CMK ticket

See Also:
Constant Field Values

TPM_E_NOCONTEXTSPACE

public static final long TPM_E_NOCONTEXTSPACE
There is no room in the context list for additional contexts

See Also:
Constant Field Values

TPM_E_RETRY

public static final long TPM_E_RETRY
The TPM is too busy to respond to the command immediately, but the command could be resubmitted at a later time. The TPM MAY return TPM_Retry for any command at any time.

See Also:
Constant Field Values

TPM_E_NEEDS_SELFTEST

public static final long TPM_E_NEEDS_SELFTEST
SelfTestFull has not been run

See Also:
Constant Field Values

TPM_E_DOING_SELFTEST

public static final long TPM_E_DOING_SELFTEST
The TPM is currently executing a full self test

See Also:
Constant Field Values

TPM_E_DEFEND_LOCK_RUNNING

public static final long TPM_E_DEFEND_LOCK_RUNNING
The TPM is defending against dictionary attacks and is in some time-out period.

See Also:
Constant Field Values

TPM_E_TBS_COMMAND_BLOCKED

public static final long TPM_E_TBS_COMMAND_BLOCKED
This error code is returned by the TBS of Windows Vista if a command is blocked by the TBS.

See Also:
Constant Field Values

ERR_TYPE_UNKNOWN

public static final long ERR_TYPE_UNKNOWN
Unknown error type.

See Also:
Constant Field Values

ERR_TYPE_TPM_SUCCESS

public static final long ERR_TYPE_TPM_SUCCESS
No Error (TPM success)

See Also:
Constant Field Values

ERR_TYPE_TPM_FATAL

public static final long ERR_TYPE_TPM_FATAL
Fatal TPM defined error.

See Also:
Constant Field Values

ERR_TYPE_TPM_NONFATAL

public static final long ERR_TYPE_TPM_NONFATAL
Fatal vendor defined error.

See Also:
Constant Field Values

ERR_TYPE_VENDOR_FATAL

public static final long ERR_TYPE_VENDOR_FATAL
Non-fatal TPM defined error.

See Also:
Constant Field Values

ERR_TYPE_VENDOR_NONFATAL

public static final long ERR_TYPE_VENDOR_NONFATAL
Non-fatal vendor defined error.

See Also:
Constant Field Values
Method Detail

getErrorType

public static long getErrorType(long errCode)
This method takes an error received from the TPM and returns the specific type of the error (one of ERR_TYPE_XXX). Not that ERR_TYPE_XXX are not TCG constants. The error ranges are define in the Return Codes chapter of the TPM specification.


getErrorTypeAsString

public static java.lang.String getErrorTypeAsString(long errCode)
This method takes an error received from the TPM and returns a String representation the specific type of the error.


errToString

public static java.lang.String errToString(long errCode)
This method returns an error message including the error code, the error type and the error message.


getErrMsg

public static java.lang.String getErrMsg(long errCode)
This method returns the error string for the given error code.