jdk/src/share/classes/sun/security/pkcs11/wrapper/PKCS11.java
changeset 12813 c10ab96dcf41
parent 11507 bd978326a655
child 16734 da1901d79073
equal deleted inserted replaced
12491:b3a91113026c 12813:c10ab96dcf41
    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;
    58 
    59 
    59 /**
    60 /**
    60  * This is the default implementation of the PKCS11 interface. IT connects to
    61  * This is the default implementation of the PKCS11 interface. IT connects to
    61  * the pkcs11wrapper.dll file, which is the native part of this library.
    62  * the pkcs11wrapper.dll file, which is the native part of this library.
    62  * The strange and awkward looking initialization was chosen to avoid calling
    63  * The strange and awkward looking initialization was chosen to avoid calling
    65  *
    66  *
    66  * @author Karl Scheibelhofer <Karl.Scheibelhofer@iaik.at>
    67  * @author Karl Scheibelhofer <Karl.Scheibelhofer@iaik.at>
    67  * @author Martin Schlaeffer <schlaeff@sbox.tugraz.at>
    68  * @author Martin Schlaeffer <schlaeff@sbox.tugraz.at>
    68  * @invariants (pkcs11ModulePath_ <> null)
    69  * @invariants (pkcs11ModulePath_ <> null)
    69  */
    70  */
       
    71 /* No native methods here, but the constants are needed in the supporting JNI code */
       
    72 @GenerateNativeHeader
    70 public class PKCS11 {
    73 public class PKCS11 {
    71 
    74 
    72     /**
    75     /**
    73      * The name of the native part of the wrapper; i.e. the filename without
    76      * The name of the native part of the wrapper; i.e. the filename without
    74      * the extension (e.g. ".DLL" or ".so").
    77      * the extension (e.g. ".DLL" or ".so").