public class PCError
extends PCAbstractError
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
PC_ERROR_ACCESSING_KEY
Key cannot be accessed
|
static int |
PC_ERROR_ACTIVATION_CODE_EMPTY
Activation code is empty
|
static int |
PC_ERROR_ACTIVATION_CODE_INCORRECT
Activation code incorrect
|
static int |
PC_ERROR_ACTIVATION_REQUIRED
Activation code required
|
static int |
PC_ERROR_ALIEN_TRANSACTION_IN_OPERATION
The list contains some transaction which does not present in the operation
|
static int |
PC_ERROR_AUTOSIGN_DISABLED
Autosign disabled in user's or transaction's settings, or there is getScoringSettings error
|
static int |
PC_ERROR_BACKUP_DATA_CORRUPTED
Wrong format (missing fields) in backup data
|
static int |
PC_ERROR_CALCULATING_HASH_FAILED
Failed to calculate hash value
|
static int |
PC_ERROR_CALCULATING_HMAC_FAILED
Failed to calculate HMAC
|
static int |
PC_ERROR_CALCULATING_SIGNATURE_FAILED
Failed to calculate signature
|
static int |
PC_ERROR_CANNOT_ACCESS_FORMER_STORAGE
An error occurred when failed to access PCSDK 4 storage while migrating keys from PCSDK v4 to the current PCSDK
|
static int |
PC_ERROR_CANNOT_GENERATE_KEK
KEK cannot be generated
|
static int |
PC_ERROR_CANNOT_GENERATE_KEY_PAIR
Key pair cannot be generated
|
static int |
PC_ERROR_CANNOT_OVERRIDE_DEVICE_FINGERPRINT
An error occurred when migrating keys from PCSDK v4 to the current PCSDK with the different device fingerprint
|
static int |
PC_ERROR_CRYPTO_ALGORITHM_NOT_AVAILABLE
Refers to NoSuchAlgorithmException
|
static int |
PC_ERROR_CRYPTO_PROVIDER_NOT_AVAILABLE
Refers to NoSuchProviderException
|
static int |
PC_ERROR_DATA_DECRYPTION_FAILED
Failed to decrypt key
|
static int |
PC_ERROR_DATA_ENCRYPTION_FAILED
Failed to encrypt data
|
static int |
PC_ERROR_EXT_AUTH_NOT_FOUND
Extended authentication data not found
|
static int |
PC_ERROR_FAILED_TO_INIT_CRYPTO_PROVIDER
Failed to init crypto provider
|
static int |
PC_ERROR_FILE_ACCESS
An error occurred while trying to access some file for reading or writing
|
static int |
PC_ERROR_GENERAL
Undefined error.
|
static int |
PC_ERROR_HARDWARE_DECRYPTION
Error extracting data from hardware storage.
|
static int |
PC_ERROR_INVALID_METHOD_USAGE
Method is used in inappropriate way
|
static int |
PC_ERROR_INVALID_QR
Data passed in QR code has incorrect format
|
static int |
PC_ERROR_KEY_DATE_EXPIRED
Keys are expired.
|
static int |
PC_ERROR_KEY_PASS_LENGTH_INVALID
Deprecated.
|
static int |
PC_ERROR_KEY_SAVE_FAILED
Storage error
|
static int |
PC_ERROR_KEYPAIR_EXISTS
Key pair already exists
|
static int |
PC_ERROR_MAX_RECORDS_COUNT_EXCEEDED
Max records count is 64
|
static int |
PC_ERROR_MISS_TRANSACTIONS_TO_PROCESS
No transactions mentioned to be processed in operations.
|
static int |
PC_ERROR_MISSING_CMS_AUTHENTICATED_ATTRIBUTES
Missing CMS Authenticated Attributes
|
static int |
PC_ERROR_NAME_EMPTY
Name is empty
|
static int |
PC_ERROR_NAME_EXISTS
Name not unique
|
static int |
PC_ERROR_NO_VALID_TRANSACTION_TO_LOGIN
No transaction id return when requesting from client to log in
|
static int |
PC_ERROR_NOT_INVALID_INPUT_FOR_CRYPTOGRAPHY_OPERATION
Invalid or insufficient input to perform cryptography operation
|
static int |
PC_ERROR_OK
No error
|
static int |
PC_ERROR_OPERATION_NOT_SUPPORTED
Operation not supported
|
static int |
PC_ERROR_PASS_EMPTY
Password is empty
|
static int |
PC_ERROR_PASS_INCORRECT
Password incorrect
|
static int |
PC_ERROR_PASS_POLICY_MISMATCH
Password policy mismatch
|
static int |
PC_ERROR_PCUSER_NOT_FOUND
User not found
|
static int |
PC_ERROR_QR_CODE_EXPIRED
Scanned QR code has already expired
|
static int |
PC_ERROR_REMOTE_UPDATE_DISABLED
Remote update is disabled for the user
|
static int |
PC_ERROR_SCORING_DISABLED
Scoring disabled in user's settings
|
static int |
PC_ERROR_SCORING_INIT_ERROR
Scoring initialization error
|
static int |
PC_ERROR_SCORING_NOT_INITIALIZED
Scoring has not been started
|
static int |
PC_ERROR_SCORING_UNAVAILABLE
Deprecated.
|
static int |
PC_ERROR_SDK_NOT_INITIALIZED
The instance of PCSDK is not initialized or corrupted
|
static int |
PC_ERROR_TRANSACTION_BINARY_DATA_IS_REQUIRED
Binary data is required to sign/decline transaction
|
static int |
PC_ERROR_TRANSACTION_BINARY_DATA_UNAVAILABLE
No binary data available for target transaction
|
static int |
PC_ERROR_TRANSACTION_DATA_IS_NULL
Transaction data is empty
|
static int |
PC_ERROR_UNKNOWN_SYSTEM_ID
No users belonging to provided system id found
|
static int |
PC_ERROR_USER_NOT_READY_TO_SIGN
Password required
|
static int |
PC_ERROR_WORK_WITH_CRYPTO_PROVIDER_INTERRUPTED
User interrupted to work with crypto provider
|
static int |
PC_ERROR_WRONG_USER_TO_LOGIN
User does not belong to the system in which user logs in
|
Constructor and Description |
---|
PCError(int type)
Constructor
|
PCError(int type,
java.lang.Exception cause) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Get error message
|
java.lang.String |
toString() |
public static final int PC_ERROR_OK
public static final int PC_ERROR_KEY_DATE_EXPIRED
public static final int PC_ERROR_ACTIVATION_CODE_EMPTY
public static final int PC_ERROR_NAME_EMPTY
public static final int PC_ERROR_PASS_EMPTY
public static final int PC_ERROR_PASS_INCORRECT
public static final int PC_ERROR_KEY_SAVE_FAILED
public static final int PC_ERROR_GENERAL
public static final int PC_ERROR_NAME_EXISTS
@Deprecated public static final int PC_ERROR_KEY_PASS_LENGTH_INVALID
public static final int PC_ERROR_MAX_RECORDS_COUNT_EXCEEDED
public static final int PC_ERROR_PCUSER_NOT_FOUND
public static final int PC_ERROR_ACTIVATION_CODE_INCORRECT
public static final int PC_ERROR_USER_NOT_READY_TO_SIGN
public static final int PC_ERROR_KEYPAIR_EXISTS
public static final int PC_ERROR_OPERATION_NOT_SUPPORTED
public static final int PC_ERROR_HARDWARE_DECRYPTION
public static final int PC_ERROR_PASS_POLICY_MISMATCH
public static final int PC_ERROR_EXT_AUTH_NOT_FOUND
public static final int PC_ERROR_TRANSACTION_DATA_IS_NULL
public static final int PC_ERROR_ACTIVATION_REQUIRED
public static final int PC_ERROR_SCORING_INIT_ERROR
public static final int PC_ERROR_SCORING_DISABLED
public static final int PC_ERROR_AUTOSIGN_DISABLED
public static final int PC_ERROR_SCORING_NOT_INITIALIZED
@Deprecated public static final int PC_ERROR_SCORING_UNAVAILABLE
public static final int PC_ERROR_UNKNOWN_SYSTEM_ID
public static final int PC_ERROR_QR_CODE_EXPIRED
public static final int PC_ERROR_INVALID_QR
public static final int PC_ERROR_NO_VALID_TRANSACTION_TO_LOGIN
public static final int PC_ERROR_WRONG_USER_TO_LOGIN
public static final int PC_ERROR_TRANSACTION_BINARY_DATA_UNAVAILABLE
public static final int PC_ERROR_TRANSACTION_BINARY_DATA_IS_REQUIRED
public static final int PC_ERROR_BACKUP_DATA_CORRUPTED
public static final int PC_ERROR_REMOTE_UPDATE_DISABLED
public static final int PC_ERROR_ALIEN_TRANSACTION_IN_OPERATION
public static final int PC_ERROR_MISS_TRANSACTIONS_TO_PROCESS
public static final int PC_ERROR_INVALID_METHOD_USAGE
public static final int PC_ERROR_MISSING_CMS_AUTHENTICATED_ATTRIBUTES
public static final int PC_ERROR_ACCESSING_KEY
public static final int PC_ERROR_FAILED_TO_INIT_CRYPTO_PROVIDER
public static final int PC_ERROR_CRYPTO_PROVIDER_NOT_AVAILABLE
public static final int PC_ERROR_CRYPTO_ALGORITHM_NOT_AVAILABLE
public static final int PC_ERROR_WORK_WITH_CRYPTO_PROVIDER_INTERRUPTED
public static final int PC_ERROR_CANNOT_GENERATE_KEK
public static final int PC_ERROR_CANNOT_GENERATE_KEY_PAIR
public static final int PC_ERROR_DATA_ENCRYPTION_FAILED
public static final int PC_ERROR_DATA_DECRYPTION_FAILED
public static final int PC_ERROR_CALCULATING_HMAC_FAILED
public static final int PC_ERROR_CALCULATING_SIGNATURE_FAILED
public static final int PC_ERROR_CALCULATING_HASH_FAILED
public static final int PC_ERROR_NOT_INVALID_INPUT_FOR_CRYPTOGRAPHY_OPERATION
public static final int PC_ERROR_SDK_NOT_INITIALIZED
public static final int PC_ERROR_FILE_ACCESS
public static final int PC_ERROR_CANNOT_OVERRIDE_DEVICE_FINGERPRINT
public static final int PC_ERROR_CANNOT_ACCESS_FORMER_STORAGE