jdk/src/share/classes/sun/security/pkcs11/wrapper/PKCS11.java
changeset 16734 da1901d79073
parent 12813 c10ab96dcf41
child 17477 09aab50cf738
equal deleted inserted replaced
16733:9267ec7004a1 16734:da1901d79073
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     3  */
     3  */
     4 
     4 
     5 /* Copyright  (c) 2002 Graz University of Technology. All rights reserved.
     5 /* Copyright  (c) 2002 Graz University of Technology. All rights reserved.
     6  *
     6  *
     7  * Redistribution and use in  source and binary forms, with or without
     7  * Redistribution and use in  source and binary forms, with or without
    53 
    53 
    54 import java.security.AccessController;
    54 import java.security.AccessController;
    55 import java.security.PrivilegedAction;
    55 import java.security.PrivilegedAction;
    56 
    56 
    57 import static sun.security.pkcs11.wrapper.PKCS11Constants.*;
    57 import static sun.security.pkcs11.wrapper.PKCS11Constants.*;
    58 import javax.tools.annotation.GenerateNativeHeader;
       
    59 
    58 
    60 /**
    59 /**
    61  * This is the default implementation of the PKCS11 interface. IT connects to
    60  * This is the default implementation of the PKCS11 interface. IT connects to
    62  * the pkcs11wrapper.dll file, which is the native part of this library.
    61  * the pkcs11wrapper.dll file, which is the native part of this library.
    63  * The strange and awkward looking initialization was chosen to avoid calling
    62  * The strange and awkward looking initialization was chosen to avoid calling
    66  *
    65  *
    67  * @author Karl Scheibelhofer <Karl.Scheibelhofer@iaik.at>
    66  * @author Karl Scheibelhofer <Karl.Scheibelhofer@iaik.at>
    68  * @author Martin Schlaeffer <schlaeff@sbox.tugraz.at>
    67  * @author Martin Schlaeffer <schlaeff@sbox.tugraz.at>
    69  * @invariants (pkcs11ModulePath_ <> null)
    68  * @invariants (pkcs11ModulePath_ <> null)
    70  */
    69  */
    71 /* No native methods here, but the constants are needed in the supporting JNI code */
       
    72 @GenerateNativeHeader
       
    73 public class PKCS11 {
    70 public class PKCS11 {
    74 
    71 
    75     /**
    72     /**
    76      * The name of the native part of the wrapper; i.e. the filename without
    73      * The name of the native part of the wrapper; i.e. the filename without
    77      * the extension (e.g. ".DLL" or ".so").
    74      * the extension (e.g. ".DLL" or ".so").