|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
de.datenzone.tpm4java.TPMException
public class TPMException
TPMException wraps error code from the TPM, when a command could not be finished correctly. The TPM has a lot of error codes, and TPMException provides not only the names for these error code, but will print the reason for this code in human readable form. The error codes are from https://www.trustedcomputinggroup.org/groups/tpm/tpmwg-mainrev62_Part2_TPM_Structures.pdf
| Constructor Summary | |
|---|---|
TPMException()
Default constructor. |
|
TPMException(java.lang.String message)
Create a TPMException with an additional error message |
|
TPMException(java.lang.String message,
int returnCode,
java.nio.ByteBuffer reply)
Generate a new Exception from a TPM reply. |
|
TPMException(java.lang.String message,
java.lang.Throwable cause)
|
|
TPMException(java.lang.Throwable cause)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
ErrorString(int id)
Convert a numeric error message to a human readable string. |
java.nio.ByteBuffer |
getReply()
|
int |
getReturnCode()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TPM_BASE
public static final int TPM_SUCCESS
public static final int TPM_NON_FATAL
public static final int TPM_AUTHFAIL
public static final int TPM_BADINDEX
public static final int TPM_BAD_PARAMETER
public static final int TPM_AUDITFAILURE
public static final int TPM_CLEAR_DISABLED
public static final int TPM_DEACTIVATED
public static final int TPM_DISABLED
public static final int TPM_DISABLED_CMD
public static final int TPM_FAIL
public static final int TPM_BAD_ORDINAL
public static final int TPM_INSTALL_DISABLED
public static final int TPM_INVALID_KEYHANDLE
public static final int TPM_KEYNOTFOUND
public static final int TPM_INAPPROPRIATE_ENC
public static final int TPM_MIGRATEFAIL
public static final int TPM_INVALID_PCR_INFO
public static final int TPM_NOSPACE
public static final int TPM_NOSRK
public static final int TPM_NOTSEALED_BLOB
public static final int TPM_OWNER_SET
public static final int TPM_RESOURCES
public static final int TPM_SHORTRANDOM
public static final int TPM_SIZE
public static final int TPM_WRONGPCRVAL
public static final int TPM_BAD_PARAM_SIZE
public static final int TPM_SHA_THREAD
public static final int TPM_SHA_ERROR
public static final int TPM_FAILEDSELFTEST
public static final int TPM_AUTH2FAIL
public static final int TPM_BADTAG
public static final int TPM_IOERROR
public static final int TPM_ENCRYPT_ERROR
public static final int TPM_DECRYPT_ERROR
public static final int TPM_INVALID_AUTHHANDLE
public static final int TPM_NO_ENDORSEMENT
public static final int TPM_INVALID_KEYUSAGE
public static final int TPM_WRONG_ENTITYTYPE
public static final int TPM_INVALID_POSTINIT
public static final int TPM_INAPPROPRIATE_SIG
public static final int TPM_BAD_KEY_PROPERTY
public static final int TPM_BAD_MIGRATION
public static final int TPM_BAD_SCHEME
public static final int TPM_BAD_DATASIZE
public static final int TPM_BAD_MODE
public static final int TPM_BAD_PRESENCE
public static final int TPM_BAD_VERSION
public static final int TPM_NO_WRAP_TRANSPORT
public static final int TPM_AUDITFAIL_UNSUCCESSFUL
public static final int TPM_AUDITFAIL_SUCCESSFUL
public static final int TPM_NOTRESETABLE
public static final int TPM_NOTLOCAL
public static final int TPM_BAD_TYPE
public static final int TPM_INVALID_RESOURCE
public static final int TPM_NOTFIPS
public static final int TPM_INVALID_FAMILY
public static final int TPM_NO_NV_PERMISSION
public static final int TPM_REQUIRES_SIGN
public static final int TPM_KEY_NOTSUPPORTED
public static final int TPM_AUTH_CONFLICT
public static final int TPM_AREA_LOCKED
public static final int TPM_BAD_LOCALITY
public static final int TPM_READ_ONLY
public static final int TPM_PER_NOWRITE
public static final int TPM_FAMILYCOUNT
public static final int TPM_WRITE_LOCKED
public static final int TPM_BAD_ATTRIBUTES
public static final int TPM_INVALID_STRUCTURE
public static final int TPM_KEY_OWNER_CONTROL
public static final int TPM_BAD_COUNTER
public static final int TPM_NOT_FULLWRITE
public static final int TPM_CONTEXT_GAP
public static final int TPM_MAXNVWRITES
public static final int TPM_NOOPERATOR
public static final int TPM_RESOURCEMISSING
public static final int TPM_DELEGATE_LOCK
public static final int TPM_DELEGATE_FAMILY
public static final int TPM_DELEGATE_ADMIN
public static final int TPM_TRANSPORT_EXCLUSIVE
public static final int TPM_OWNER_CONTROL
public static final int TPM_DAA_RESOURCES
public static final int TPM_RETRY
| Constructor Detail |
|---|
public TPMException()
public TPMException(java.lang.String message)
message -
public TPMException(java.lang.String message,
int returnCode,
java.nio.ByteBuffer reply)
message - A user generated string describing the problem. The Error code
will be appended.returnCode - The return code from the tpm.reply - response from the tpm.
public TPMException(java.lang.String message,
java.lang.Throwable cause)
message - cause - public TPMException(java.lang.Throwable cause)
cause - | Method Detail |
|---|
public static java.lang.String ErrorString(int id)
id - The number of the error code.
public int getReturnCode()
public java.nio.ByteBuffer getReply()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||