src/share/classes/sun/security/smartcardio/PCSC.java

Print this page




  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.security.smartcardio;
  27 
  28 import java.security.AccessController;
  29 
  30 import sun.security.action.LoadLibraryAction;
  31 
  32 /**
  33  * Access to native PC/SC functions and definition of PC/SC constants.
  34  * Initialization and platform specific PC/SC constants are handled in
  35  * the platform specific superclass.
  36  *
  37  * @since   1.6
  38  * @author  Andreas Sterbenz
  39  */
  40 final class PCSC extends PlatformPCSC {
  41 
  42     private PCSC() {
  43         // no instantiation
  44     }
  45 
  46     static void checkAvailable() throws RuntimeException {
  47         if (initException != null) {
  48             throw new UnsupportedOperationException
  49                     ("PC/SC not available on this platform", initException);
  50         }
  51     }




  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.security.smartcardio;
  27 
  28 import java.security.AccessController;
  29 


  30 /**
  31  * Access to native PC/SC functions and definition of PC/SC constants.
  32  * Initialization and platform specific PC/SC constants are handled in
  33  * the platform specific superclass.
  34  *
  35  * @since   1.6
  36  * @author  Andreas Sterbenz
  37  */
  38 final class PCSC extends PlatformPCSC {
  39 
  40     private PCSC() {
  41         // no instantiation
  42     }
  43 
  44     static void checkAvailable() throws RuntimeException {
  45         if (initException != null) {
  46             throw new UnsupportedOperationException
  47                     ("PC/SC not available on this platform", initException);
  48         }
  49     }