Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7003063

Missing PC/SC constants

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 6u22
    • security-libs

      FULL PRODUCT VERSION :
      java version "1.6.0_22"
      Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
      Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      The class sun.security.smartcardio.PCSC does not contain all Windows codes as constants. The class sun.security.smartcardio.PCSCException should also be completed.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Make the code throw 0x8010002f

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      PCSCException: SCARD_E_COMM_DATA_LOST

      The following codes are wrong:
      0x8010001F SCARD_E_UNSUPPORTED_FEATURE, should be SCARD_E_UNEXPECTED
      0x8010006A SCARD_W_INSERTED_CARD, should be SCARD_W_SECURITY_VIOLATION

      The following codes are missing:
      SCARD_E_ICC_INSTALLATION = 0x80100020;
      SCARD_E_ICC_CREATEORDER = 0x80100021;
      SCARD_E_UNSUPPORTED_FEATURE = 0x80100022;
      SCARD_E_DIR_NOT_FOUND = 0x80100023;
      SCARD_E_FILE_NOT_FOUND = 0x80100024;
      SCARD_E_NO_DIR = 0x80100025;
      SCARD_E_NO_FILE = 0x80100026;
      SCARD_E_NO_ACCESS = 0x80100027;
      SCARD_E_WRITE_TOO_MANY = 0x80100028;
      SCARD_E_BAD_SEEK = 0x80100029;
      SCARD_E_INVALID_CHV = 0x8010002A;
      SCARD_E_UNKNOWN_RES_MNG = 0x8010002B;
      SCARD_E_NO_SUCH_CERTIFICATE = 0x8010002C;
      SCARD_E_CERTIFICATE_UNAVAILABLE = 0x8010002D;

      SCARD_E_COMM_DATA_LOST = 0x8010002F;
      SCARD_E_NO_KEY_CONTAINER = 0x80100030;

      SCARD_W_WRONG_CHV = 0x8010006B;
      SCARD_W_CHV_BLOCKED = 0x8010006C;
      SCARD_W_EOF = 0x8010006D;
      SCARD_W_CANCELLED_BY_USER = 0x8010006E;
      SCARD_W_CARD_NOT_AUTHENTICATED = 0x8010006F;
      ACTUAL -
      PCSCException: Unknown error 0x8010002f


      REPRODUCIBILITY :
      This bug can be reproduced always.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: