Smart Card Solution
User Manual
- R502 Manual
JavaCard API Samples
- Algorithm
Java Card Specification
Knowledge Sharing
Smart Card Solution
User Manual
JavaCard API Samples
Java Card Specification
Knowledge Sharing
This is an old revision of the document!
Constant Field Values
Contents
javacard.framework. |
---|
^ javacard.framework.APDU ^^^
| public static final byte | PROTOCOL_MEDIA_CONTACTLESS_TYPE_A | -128 |
| public static final byte | PROTOCOL_MEDIA_CONTACTLESS_TYPE_B | -112 |
| public static final byte | PROTOCOL_MEDIA_DEFAULT | 0 |
| public static final byte | PROTOCOL_MEDIA_MASK | -16 |
| public static final byte | PROTOCOL_MEDIA_USB | -96 |
| public static final byte | PROTOCOL_T0 | 0 |
| public static final byte | PROTOCOL_T1 | 1 |
| public static final byte | PROTOCOL_TYPE_MASK | 15 |
| public static final byte | STATE_ERROR_IO | -3 |
| public static final byte | STATE_ERROR_NO_T0_GETRESPONSE | -1 |
| public static final byte | STATE_ERROR_NO_T0_REISSUE | -4 |
| public static final byte | STATE_ERROR_T1_IFD_ABORT | -2 |
| public static final byte | STATE_FULL_INCOMING | 2 |
| public static final byte | STATE_FULL_OUTGOING | 6 |
| public static final byte | STATE_INITIAL | 0 |
| public static final byte | STATE_OUTGOING | 3 |
| public static final byte | STATE_OUTGOING_LENGTH_KNOWN | 4 |
| public static final byte | STATE_PARTIAL_INCOMING | 1 |
| public static final byte | STATE_PARTIAL_OUTGOING | 5 |^ javacard.framework.APDUException ^^^
| public static final short | BAD_LENGTH | 3 |
| public static final short | BUFFER_BOUNDS | 2 |
| public static final short | ILLEGAL_USE | 1 |
| public static final short | IO_ERROR | 4 |
| public static final short | NO_T0_GETRESPONSE | 170 |
| public static final short | NO_T0_REISSUE | 172 |
| public static final short | T1_IFD_ABORT | 171 |^ javacard.framework.ISO7816 ^^^
| public static final byte | CLA_ISO7816 | 0 |
| public static final byte | INS_EXTERNAL_AUTHENTICATE | -126 |
| public static final byte | INS_SELECT | -92 |
| public static final byte | OFFSET_CDATA | 5 |
| public static final byte | OFFSET_CLA | 0 |
| public static final byte | OFFSET_EXT_CDATA | 7 |
| public static final byte | OFFSET_INS | 1 |
| public static final byte | OFFSET_LC | 4 |
| public static final byte | OFFSET_P1 | 2 |
| public static final byte | OFFSET_P2 | 3 |
| public static final short | SW_APPLET_SELECT_FAILED | 27033 |
| public static final short | SW_BYTES_REMAINING_00 | 24832 |
| public static final short | SW_CLA_NOT_SUPPORTED | 28160 |
| public static final short | SW_COMMAND_CHAINING_NOT_SUPPORTED | 26756 |
| public static final short | SW_COMMAND_NOT_ALLOWED | 27014 |
| public static final short | SW_CONDITIONS_NOT_SATISFIED | 27013 |
| public static final short | SW_CORRECT_LENGTH_00 | 27648 |
| public static final short | SW_DATA_INVALID | 27012 |
| public static final short | SW_FILE_FULL | 27268 |
| public static final short | SW_FILE_INVALID | 27011 |
| public static final short | SW_FILE_NOT_FOUND | 27266 |
| public static final short | SW_FUNC_NOT_SUPPORTED | 27265 |
| public static final short | SW_INCORRECT_P1P2 | 27270 |
| public static final short | SW_INS_NOT_SUPPORTED | 27904 |
| public static final short | SW_LAST_COMMAND_EXPECTED | 26755 |
| public static final short | SW_LOGICAL_CHANNEL_NOT_SUPPORTED | 26753 |
| public static final short | SW_NO_ERROR | -28672 |
| public static final short | SW_RECORD_NOT_FOUND | 27267 |
| public static final short | SW_SECURE_MESSAGING_NOT_SUPPORTED | 26754 |
| public static final short | SW_SECURITY_STATUS_NOT_SATISFIED | 27010 |
| public static final short | SW_UNKNOWN | 28416 |
| public static final short | SW_WARNING_STATE_UNCHANGED | 25088 |
| public static final short | SW_WRONG_DATA | 27264 |
| public static final short | SW_WRONG_LENGTH | 26368 |
| public static final short | SW_WRONG_P1P2 | 27392 |^ javacard.framework.JCSystem ^^^
| public static final byte | CLEAR_ON_DESELECT | 2 |
| public static final byte | CLEAR_ON_RESET | 1 |
| public static final byte | MEMORY_TYPE_PERSISTENT | 0 |
| public static final byte | MEMORY_TYPE_TRANSIENT_DESELECT | 2 |
| public static final byte | MEMORY_TYPE_TRANSIENT_RESET | 1 |
| public static final byte | NOT_A_TRANSIENT_OBJECT | 0 |^ javacard.framework.PINException ^^^
| public static final short | ILLEGAL_VALUE | 1 |^ javacard.framework.SystemException ^^^
| public static final short | ILLEGAL_AID | 4 |
| public static final short | ILLEGAL_TRANSIENT | 3 |
| public static final short | ILLEGAL_USE | 6 |
| public static final short | ILLEGAL_VALUE | 1 |
| public static final short | NO_RESOURCE | 5 |
| public static final short | NO_TRANSIENT_SPACE | 2 |^ javacard.framework.TransactionException ^^^
| public static final short | BUFFER_FULL | 3 |
| public static final short | IN_PROGRESS | 1 |
| public static final short | INTERNAL_FAILURE | 4 |
| public static final short | NOT_IN_PROGRESS | 2 |^ javacard.framework.service.Dispatcher ^^^
| public static final byte | PROCESS_COMMAND | 2 |
| public static final byte | PROCESS_INPUT_DATA | 1 |
| public static final byte | PROCESS_NONE | 0 |
| public static final byte | PROCESS_OUTPUT_DATA | 3 |^ javacard.framework.service.RMIService ^^^
| public static final byte | DEFAULT_RMI_INVOKE_INSTRUCTION | 56 |^ javacard.framework.service.SecurityService ^^^
| public static final short | PRINCIPAL_APP_PROVIDER | 3 |
| public static final short | PRINCIPAL_CARD_ISSUER | 2 |
| public static final short | PRINCIPAL_CARDHOLDER | 1 |
| public static final byte | PROPERTY_INPUT_CONFIDENTIALITY | 1 |
| public static final byte | PROPERTY_INPUT_INTEGRITY | 2 |
| public static final byte | PROPERTY_OUTPUT_CONFIDENTIALITY | 4 |
| public static final byte | PROPERTY_OUTPUT_INTEGRITY | 8 |^ javacard.framework.service.ServiceException ^^^
| public static final short | CANNOT_ACCESS_IN_COMMAND | 4 |
| public static final short | CANNOT_ACCESS_OUT_COMMAND | 5 |
| public static final short | COMMAND_DATA_TOO_LONG | 3 |
| public static final short | COMMAND_IS_FINISHED | 6 |
| public static final short | DISPATCH_TABLE_FULL | 2 |
| public static final short | ILLEGAL_PARAM | 1 |
| public static final short | REMOTE_OBJECT_NOT_EXPORTED | 7 |^ javacard.security.* ^ ^ javacard.security.Checksum ^^^
| public static final byte | ALG_ISO3309_CRC16 | 1 |
| public static final byte | ALG_ISO3309_CRC32 | 2 |^ javacard.security.CryptoException ^^^
| public static final short | ILLEGAL_USE | 5 |
| public static final short | ILLEGAL_VALUE | 1 |
| public static final short | INVALID_INIT | 4 |
| public static final short | NO_SUCH_ALGORITHM | 3 |
| public static final short | UNINITIALIZED_KEY | 2 |^ javacard.security.KeyAgreement ^^^
| public static final byte | ALG_EC_SVDP_DH | 1 |
| public static final byte | ALG_EC_SVDP_DHC | 2 |^ javacard.security.KeyBuilder ^^^
| public static final short | LENGTH_AES_128 | 128 |
| public static final short | LENGTH_AES_192 | 192 |
| public static final short | LENGTH_AES_256 | 256 |
| public static final short | LENGTH_DES | 64 |
| public static final short | LENGTH_DES3_2KEY | 128 |
| public static final short | LENGTH_DES3_3KEY | 192 |
| public static final short | LENGTH_DSA_1024 | 1024 |
| public static final short | LENGTH_DSA_512 | 512 |
| public static final short | LENGTH_DSA_768 | 768 |
| public static final short | LENGTH_EC_F2M_113 | 113 |
| public static final short | LENGTH_EC_F2M_131 | 131 |
| public static final short | LENGTH_EC_F2M_163 | 163 |
| public static final short | LENGTH_EC_F2M_193 | 193 |
| public static final short | LENGTH_EC_FP_112 | 112 |
| public static final short | LENGTH_EC_FP_128 | 128 |
| public static final short | LENGTH_EC_FP_160 | 160 |
| public static final short | LENGTH_EC_FP_192 | 192 |
| public static final short | LENGTH_HMAC_SHA_1_BLOCK_64 | 64 |
| public static final short | LENGTH_HMAC_SHA_256_BLOCK_64 | 64 |
| public static final short | LENGTH_HMAC_SHA_384_BLOCK_128 | 128 |
| public static final short | LENGTH_HMAC_SHA_512_BLOCK_128 | 128 |
| public static final short | LENGTH_KOREAN_SEED_128 | 128 |
| public static final short | LENGTH_RSA_1024 | 1024 |
| public static final short | LENGTH_RSA_1280 | 1280 |
| public static final short | LENGTH_RSA_1536 | 1536 |
| public static final short | LENGTH_RSA_1984 | 1984 |
| public static final short | LENGTH_RSA_2048 | 2048 |
| public static final short | LENGTH_RSA_512 | 512 |
| public static final short | LENGTH_RSA_736 | 736 |
| public static final short | LENGTH_RSA_768 | 768 |
| public static final short | LENGTH_RSA_896 | 896 |
| public static final byte | TYPE_AES | 15 |
| public static final byte | TYPE_AES_TRANSIENT_DESELECT | 14 |
| public static final byte | TYPE_AES_TRANSIENT_RESET | 13 |
| public static final byte | TYPE_DES | 3 |
| public static final byte | TYPE_DES_TRANSIENT_DESELECT | 2 |
| public static final byte | TYPE_DES_TRANSIENT_RESET | 1 |
| public static final byte | TYPE_DSA_PRIVATE | 8 |
| public static final byte | TYPE_DSA_PUBLIC | 7 |
| public static final byte | TYPE_EC_F2M_PRIVATE | 10 |
| public static final byte | TYPE_EC_F2M_PUBLIC | 9 |
| public static final byte | TYPE_EC_FP_PRIVATE | 12 |
| public static final byte | TYPE_EC_FP_PUBLIC | 11 |
| public static final byte | TYPE_HMAC | 21 |
| public static final byte | TYPE_HMAC_TRANSIENT_DESELECT | 20 |
| public static final byte | TYPE_HMAC_TRANSIENT_RESET | 19 |
| public static final byte | TYPE_KOREAN_SEED | 18 |
| public static final byte | TYPE_KOREAN_SEED_TRANSIENT_DESELECT | 17 |
| public static final byte | TYPE_KOREAN_SEED_TRANSIENT_RESET | 16 |
| public static final byte | TYPE_RSA_CRT_PRIVATE | 6 |
| public static final byte | TYPE_RSA_PRIVATE | 5 |
| public static final byte | TYPE_RSA_PUBLIC | 4 |^ javacard.security.KeyPair ^^^
| public static final byte | ALG_DSA | 3 |
| public static final byte | ALG_EC_F2M | 4 |
| public static final byte | ALG_EC_FP | 5 |
| public static final byte | ALG_RSA | 1 |
| public static final byte | ALG_RSA_CRT | 2 |^ javacard.security.MessageDigest ^^^
| public static final byte | ALG_MD5 | 2 |
| public static final byte | ALG_RIPEMD160 | 3 |
| public static final byte | ALG_SHA | 1 |
| public static final byte | ALG_SHA_256 | 4 |
| public static final byte | ALG_SHA_384 | 5 |
| public static final byte | ALG_SHA_512 | 6 |
| public static final byte | LENGTH_MD5 | 16 |
| public static final byte | LENGTH_RIPEMD160 | 20 |
| public static final byte | LENGTH_SHA | 20 |
| public static final byte | LENGTH_SHA_256 | 32 |
| public static final byte | LENGTH_SHA_384 | 48 |
| public static final byte | LENGTH_SHA_512 | 64 |^ javacard.security.RandomData ^^^
| public static final byte | ALG_PSEUDO_RANDOM | 1 |
| public static final byte | ALG_SECURE_RANDOM | 2 |^ javacard.security.Signature ^^^
| public static final byte | ALG_AES_MAC_128_NOPAD | 18 |
| public static final byte | ALG_DES_MAC4_ISO9797_1_M2_ALG3 | 19 |
| public static final byte | ALG_DES_MAC4_ISO9797_M1 | 3 |
| public static final byte | ALG_DES_MAC4_ISO9797_M2 | 5 |
| public static final byte | ALG_DES_MAC4_NOPAD | 1 |
| public static final byte | ALG_DES_MAC4_PKCS5 | 7 |
| public static final byte | ALG_DES_MAC8_ISO9797_1_M2_ALG3 | 20 |
| public static final byte | ALG_DES_MAC8_ISO9797_M1 | 4 |
| public static final byte | ALG_DES_MAC8_ISO9797_M2 | 6 |
| public static final byte | ALG_DES_MAC8_NOPAD | 2 |
| public static final byte | ALG_DES_MAC8_PKCS5 | 8 |
| public static final byte | ALG_DSA_SHA | 14 |
| public static final byte | ALG_ECDSA_SHA | 17 |
| public static final byte | ALG_HMAC_MD5 | 28 |
| public static final byte | ALG_HMAC_RIPEMD160 | 29 |
| public static final byte | ALG_HMAC_SHA_256 | 25 |
| public static final byte | ALG_HMAC_SHA_384 | 26 |
| public static final byte | ALG_HMAC_SHA_512 | 27 |
| public static final byte | ALG_HMAC_SHA1 | 24 |
| public static final byte | ALG_KOREAN_SEED_MAC_NOPAD | 32 |
| public static final byte | ALG_RSA_MD5_PKCS1 | 11 |
| public static final byte | ALG_RSA_MD5_PKCS1_PSS | 22 |
| public static final byte | ALG_RSA_MD5_RFC2409 | 16 |
| public static final byte | ALG_RSA_RIPEMD160_ISO9796 | 12 |
| public static final byte | ALG_RSA_RIPEMD160_ISO9796_MR | 31 |
| public static final byte | ALG_RSA_RIPEMD160_PKCS1 | 13 |
| public static final byte | ALG_RSA_RIPEMD160_PKCS1_PSS | 23 |
| public static final byte | ALG_RSA_SHA_ISO9796 | 9 |
| public static final byte | ALG_RSA_SHA_ISO9796_MR | 30 |
| public static final byte | ALG_RSA_SHA_PKCS1 | 10 |
| public static final byte | ALG_RSA_SHA_PKCS1_PSS | 21 |
| public static final byte | ALG_RSA_SHA_RFC2409 | 15 |
| public static final byte | MODE_SIGN | 1 |
| public static final byte | MODE_VERIFY | 2 |^ javacardx.biometry.* ^ ^ javacardx.biometry.BioBuilder ^^^
| public static final byte | BODY_ODOR | 13 |
| public static final byte | DEFAULT_INITPARAM | 0 |
| public static final byte | DNA_SCAN | 14 |
| public static final byte | EAR_GEOMETRY | 15 |
| public static final byte | FACIAL_FEATURE | 1 |
| public static final byte | FINGER_GEOMETRY | 16 |
| public static final byte | FINGERPRINT | 3 |
| public static final byte | GAIT_STYLE | 12 |
| public static final byte | HAND_GEOMETRY | 6 |
| public static final byte | IRIS_SCAN | 4 |
| public static final byte | KEYSTROKES | 8 |
| public static final byte | LIP_MOVEMENT | 9 |
| public static final byte | PALM_GEOMETRY | 17 |
| public static final byte | PASSWORD | 31 |
| public static final byte | RETINA_SCAN | 5 |
| public static final byte | SIGNATURE | 7 |
| public static final byte | THERMAL_FACE | 10 |
| public static final byte | THERMAL_HAND | 11 |
| public static final byte | VEIN_PATTERN | 18 |
| public static final byte | VOICE_PRINT | 2 |^ javacardx.biometry.BioException ^^^
| public static final short | ILLEGAL_USE | 5 |
| public static final short | ILLEGAL_VALUE | 1 |
| public static final short | INVALID_DATA | 2 |
| public static final short | NO_SUCH_BIO_TEMPLATE | 3 |
| public static final short | NO_TEMPLATES_ENROLLED | 4 |^ javacardx.biometry.BioTemplate ^^^
| public static final short | MATCH_NEEDS_MORE_DATA | -1 |
| public static final short | MINIMUM_SUCCESSFUL_MATCH_SCORE | 16384 |^ javacardx.crypto.* ^ ^ javacardx.crypto.Cipher ^^^
| public static final byte | ALG_AES_BLOCK_128_CBC_NOPAD | 13 |
| public static final byte | ALG_AES_BLOCK_128_ECB_NOPAD | 14 |
| public static final byte | ALG_DES_CBC_ISO9797_M1 | 2 |
| public static final byte | ALG_DES_CBC_ISO9797_M2 | 3 |
| public static final byte | ALG_DES_CBC_NOPAD | 1 |
| public static final byte | ALG_DES_CBC_PKCS5 | 4 |
| public static final byte | ALG_DES_ECB_ISO9797_M1 | 6 |
| public static final byte | ALG_DES_ECB_ISO9797_M2 | 7 |
| public static final byte | ALG_DES_ECB_NOPAD | 5 |
| public static final byte | ALG_DES_ECB_PKCS5 | 8 |
| public static final byte | ALG_KOREAN_SEED_CBC_NOPAD | 17 |
| public static final byte | ALG_KOREAN_SEED_ECB_NOPAD | 16 |
| public static final byte | ALG_RSA_ISO14888 | 9 |
| public static final byte | ALG_RSA_ISO9796 | 11 |
| public static final byte | ALG_RSA_NOPAD | 12 |
| public static final byte | ALG_RSA_PKCS1 | 10 |
| public static final byte | ALG_RSA_PKCS1_OAEP | 15 |
| public static final byte | MODE_DECRYPT | 1 |
| public static final byte | MODE_ENCRYPT | 2 |^ javacardx.external.* ^ ^ javacardx.external.ExternalException ^^^
| public static final short | INTERNAL_ERROR | 3 |
| public static final short | INVALID_PARAM | 2 |
| public static final short | NO_SUCH_SUBSYSTEM | 1 |^ javacardx.external.Memory ^^^
| public static final byte | MEMORY_TYPE_EXTENDED_STORE | 2 |
| public static final byte | MEMORY_TYPE_MIFARE | 1 |^ javacardx.framework.* ^ ^ javacardx.framework.math.BigNumber ^^^
| public static final byte | FORMAT_BCD | 1 |
| public static final byte | FORMAT_HEX | 2 |^ javacardx.framework.tlv.BERTag ^^^
| public static final byte | BER_TAG_CLASS_MASK_APPLICATION | 1 |
| public static final byte | BER_TAG_CLASS_MASK_CONTEXT_SPECIFIC | 2 |
| public static final byte | BER_TAG_CLASS_MASK_PRIVATE | 3 |
| public static final byte | BER_TAG_CLASS_MASK_UNIVERSAL | 0 |
| public static final boolean | BER_TAG_TYPE_CONSTRUCTED | true |
| public static final boolean | BER_TAG_TYPE_PRIMITIVE | false |^ javacardx.framework.tlv.TLVException ^^^
| public static final short | EMPTY_TAG | 3 |
| public static final short | EMPTY_TLV | 4 |
| public static final short | ILLEGAL_SIZE | 2 |
| public static final short | INSUFFICIENT_STORAGE | 7 |
| public static final short | INVALID_PARAM | 1 |
| public static final short | MALFORMED_TAG | 5 |
| public static final short | MALFORMED_TLV | 6 |
| public static final short | TAG_NUMBER_GREATER_THAN_32767 | 9 |
| public static final short | TAG_SIZE_GREATER_THAN_127 | 8 |
| public static final short | TLV_LENGTH_GREATER_THAN_32767 | 11 |
| public static final short | TLV_SIZE_GREATER_THAN_32767 | 10 |^ javacardx.framework.util.UtilException ^^^
| public static final short | ILLEGAL_VALUE | 1 |
| public static final short | TYPE_MISMATCHED | 2 | —-