|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
org.opensc.pkcs11.wrap.PKCS11Exception
public class PKCS11Exception
An excpetion thrown upon wvarious PKCS errors.
| Constructor Summary | |
|---|---|
PKCS11Exception()
Construct a PKCS11 exception with no error message and an error code with the value CKR_GENERAL_ERROR. |
|
PKCS11Exception(int errorCode,
String msg)
Construct a PKCS11 exception with the given error code and error message. |
|
PKCS11Exception(String msg)
Construct a PKCS11 exception with the given error message and an error code with the value CKR_GENERAL_ERROR. |
|
PKCS11Exception(String msg,
Exception e)
Construct a PKCS11 exception with the given error message and originating exception. |
|
| Method Summary | |
|---|---|
int |
getErrorCode()
|
String |
getErrorCodeName()
|
static String |
getErrorCodeName(int errorCode)
|
| 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 CKR_OK
public static final int CKR_CANCEL
public static final int CKR_HOST_MEMORY
public static final int CKR_SLOT_ID_INVALID
public static final int CKR_GENERAL_ERROR
public static final int CKR_FUNCTION_FAILED
public static final int CKR_ARGUMENTS_BAD
public static final int CKR_NO_EVENT
public static final int CKR_NEED_TO_CREATE_THREADS
public static final int CKR_CANT_LOCK
public static final int CKR_ATTRIBUTE_READ_ONLY
public static final int CKR_ATTRIBUTE_SENSITIVE
public static final int CKR_ATTRIBUTE_TYPE_INVALID
public static final int CKR_ATTRIBUTE_VALUE_INVALID
public static final int CKR_DATA_INVALID
public static final int CKR_DATA_LEN_RANGE
public static final int CKR_DEVICE_ERROR
public static final int CKR_DEVICE_MEMORY
public static final int CKR_DEVICE_REMOVED
public static final int CKR_ENCRYPTED_DATA_INVALID
public static final int CKR_ENCRYPTED_DATA_LEN_RANGE
public static final int CKR_FUNCTION_CANCELED
public static final int CKR_FUNCTION_NOT_PARALLEL
public static final int CKR_FUNCTION_NOT_SUPPORTED
public static final int CKR_KEY_HANDLE_INVALID
public static final int CKR_KEY_SIZE_RANGE
public static final int CKR_KEY_TYPE_INCONSISTENT
public static final int CKR_KEY_NOT_NEEDED
public static final int CKR_KEY_CHANGED
public static final int CKR_KEY_NEEDED
public static final int CKR_KEY_INDIGESTIBLE
public static final int CKR_KEY_FUNCTION_NOT_PERMITTED
public static final int CKR_KEY_NOT_WRAPPABLE
public static final int CKR_KEY_UNEXTRACTABLE
public static final int CKR_MECHANISM_INVALID
public static final int CKR_MECHANISM_PARAM_INVALID
public static final int CKR_OBJECT_HANDLE_INVALID
public static final int CKR_OPERATION_ACTIVE
public static final int CKR_OPERATION_NOT_INITIALIZED
public static final int CKR_PIN_INCORRECT
public static final int CKR_PIN_INVALID
public static final int CKR_PIN_LEN_RANGE
public static final int CKR_PIN_EXPIRED
public static final int CKR_PIN_LOCKED
public static final int CKR_SESSION_CLOSED
public static final int CKR_SESSION_COUNT
public static final int CKR_SESSION_HANDLE_INVALID
public static final int CKR_SESSION_PARALLEL_NOT_SUPPORTED
public static final int CKR_SESSION_READ_ONLY
public static final int CKR_SESSION_EXISTS
public static final int CKR_SESSION_READ_ONLY_EXISTS
public static final int CKR_SESSION_READ_WRITE_SO_EXISTS
public static final int CKR_SIGNATURE_INVALID
public static final int CKR_SIGNATURE_LEN_RANGE
public static final int CKR_TEMPLATE_INCOMPLETE
public static final int CKR_TEMPLATE_INCONSISTENT
public static final int CKR_TOKEN_NOT_PRESENT
public static final int CKR_TOKEN_NOT_RECOGNIZED
public static final int CKR_TOKEN_WRITE_PROTECTED
public static final int CKR_UNWRAPPING_KEY_HANDLE_INVALID
public static final int CKR_UNWRAPPING_KEY_SIZE_RANGE
public static final int CKR_UNWRAPPING_KEY_TYPE_INCONSISTENT
public static final int CKR_USER_ALREADY_LOGGED_IN
public static final int CKR_USER_NOT_LOGGED_IN
public static final int CKR_USER_PIN_NOT_INITIALIZED
public static final int CKR_USER_TYPE_INVALID
public static final int CKR_USER_ANOTHER_ALREADY_LOGGED_IN
public static final int CKR_USER_TOO_MANY_TYPES
public static final int CKR_WRAPPED_KEY_INVALID
public static final int CKR_WRAPPED_KEY_LEN_RANGE
public static final int CKR_WRAPPING_KEY_HANDLE_INVALID
public static final int CKR_WRAPPING_KEY_SIZE_RANGE
public static final int CKR_WRAPPING_KEY_TYPE_INCONSISTENT
public static final int CKR_RANDOM_SEED_NOT_SUPPORTED
public static final int CKR_RANDOM_NO_RNG
public static final int CKR_DOMAIN_PARAMS_INVALID
public static final int CKR_BUFFER_TOO_SMALL
public static final int CKR_SAVED_STATE_INVALID
public static final int CKR_INFORMATION_SENSITIVE
public static final int CKR_STATE_UNSAVEABLE
public static final int CKR_CRYPTOKI_NOT_INITIALIZED
public static final int CKR_CRYPTOKI_ALREADY_INITIALIZED
public static final int CKR_MUTEX_BAD
public static final int CKR_MUTEX_NOT_LOCKED
public static final int CKR_FUNCTION_REJECTED
| Constructor Detail |
|---|
public PKCS11Exception()
public PKCS11Exception(String msg)
msg - The error message to set.
public PKCS11Exception(int errorCode,
String msg)
errorCode - The PKCS#11 error code to set.msg - The error message to set.
public PKCS11Exception(String msg,
Exception e)
msg - The error message to set.e - The originating exception.| Method Detail |
|---|
public static String getErrorCodeName(int errorCode)
public int getErrorCode()
public String getErrorCodeName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||