public class MSKeyException extends MSException
ERROR_BUSY, ERROR_CALL_NOT_IMPLEMENTED, ERROR_INVALID_HANDLE, ERROR_INVALID_PARAMETER, ERROR_MORE_DATA, ERROR_NO_MEDIA_IN_DRIVE, ERROR_NO_MORE_ITEMS, ERROR_NOT_ALL_ASSIGNED, ERROR_NOT_ENOUGH_MEMORY, NTE_BAD_ALGID, NTE_BAD_DATA, NTE_BAD_FLAGS, NTE_BAD_HASH, NTE_BAD_HASH_STATE, NTE_BAD_KEY, NTE_BAD_KEY_STATE, NTE_BAD_KEYSET, NTE_BAD_KEYSET_PARAM, NTE_BAD_LEN, NTE_BAD_PUBLIC_KEY, NTE_BAD_SIGNATURE, NTE_BAD_TYPE, NTE_BAD_UID, NTE_BAD_VER, NTE_DOUBLE_ENCRYPT, NTE_EXISTS, NTE_FAIL, NTE_FIXEDPARAMETER, NTE_KEYSET_ENTRY_BAD, NTE_KEYSET_NOT_DEF, NTE_NO_KEY, NTE_NO_MEMORY, NTE_PERM, NTE_SILENT_CONTEXT, NTE_TOKEN_KEYSET_STORAGE_FULL, SCARD_E_INVALID_CHV, SCARD_E_NO_SUCH_CERTIFICATE, SCARD_W_CANCELLED_BY_USER, SCARD_W_CHV_BLOCKED, SCARD_W_REMOVED_CARD, SCARD_W_WRONG_CHV
Constructor and Description |
---|
MSKeyException()
Constructs a new exception with
null as its detail message. |
MSKeyException(java.lang.String message)
Constructs a new exception with the specified detail message.
|
MSKeyException(java.lang.String message,
int description) |
MSKeyException(java.lang.String message,
java.lang.Throwable error)
Constructs a new exception with the specified detail message and cause.
|
MSKeyException(java.lang.Throwable error)
Constructs a new exception with the specified cause and a detail message of
(cause==null ? null : cause.toString()) (which typically contains
the class and detail message of cause).
|
Modifier and Type | Method and Description |
---|---|
boolean |
isBadKey() |
boolean |
isNotExportable() |
static void |
procCode(int code) |
getDescription, isWrongPassword
public MSKeyException()
null
as its detail message. The
cause is not initialized, and may subsequently be initialized by a call to
Throwable.initCause(java.lang.Throwable)
.public MSKeyException(java.lang.String message)
Throwable.initCause(java.lang.Throwable)
.message
- the detail message. The detail message is saved for later
retrieval by the Throwable.getMessage()
method.public MSKeyException(java.lang.String message, java.lang.Throwable error)
Note that the detail message associated with cause
is
not automatically incorporated in this exception's detail message.
message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).error
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A null value is permitted, and indicates
that the cause is nonexistent or unknown.)public MSKeyException(java.lang.String message, int description)
public MSKeyException(java.lang.Throwable error)
error
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A null value is permitted, and indicates
that the cause is nonexistent or unknown.)public static void procCode(int code) throws MSException
MSException
public boolean isNotExportable()
public boolean isBadKey()