public class MSHashNSignException extends MSException
CRYPT_E_ASN1_ERROR, CRYPT_E_BAD_ENCODE, ERROR_BUSY, ERROR_CALL_NOT_IMPLEMENTED, ERROR_HSM_CHANNEL_CLOSED, ERROR_INVALID_HANDLE, ERROR_INVALID_PARAMETER, ERROR_INVALID_PASSWORD, 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, RPC_S_PROTOCOL_ERROR, RPC_S_SERVER_TOO_BUSY, 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, WSA_ECONNREFUSED, WSA_INVALID_HANDLE
Constructor and Description |
---|
MSHashNSignException()
Constructs a new exception with
null as its detail message. |
MSHashNSignException(java.lang.String message)
Constructs a new exception with the specified detail message.
|
MSHashNSignException(java.lang.String message,
int description) |
MSHashNSignException(java.lang.String message,
java.lang.Throwable error)
Constructs a new exception with the specified detail message and cause.
|
MSHashNSignException(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 |
isBadSignature() |
static void |
procCode(int code) |
getDescription, isBadKeyset, isCanceled, isNoKey, isPfxBadAsn1, isPfxInvalidPassword, isWantGraphic, isWrongPassword
public MSHashNSignException()
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 MSHashNSignException(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 MSHashNSignException(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 MSHashNSignException(java.lang.String message, int description)
public MSHashNSignException(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 isBadSignature()