Print this page


Split Close
Expand all
Collapse all
          --- old/jdk/src/jdk.crypto.pkcs11/share/classes/sun/security/pkcs11/Secmod.java
          +++ new/jdk/src/jdk.crypto.pkcs11/share/classes/sun/security/pkcs11/Secmod.java
↓ open down ↓ 37 lines elided ↑ open up ↑
  38   38  
  39   39  /**
  40   40   * The Secmod class defines the interface to the native NSS
  41   41   * library and the configuration information it stores in its
  42   42   * secmod.db file.
  43   43   *
  44   44   * <p>Example code:
  45   45   * <pre>
  46   46   *   Secmod secmod = Secmod.getInstance();
  47   47   *   if (secmod.isInitialized() == false) {
  48      - *       secmod.initialize("/home/myself/.mozilla", "/usr/sfw/lib/mozilla");
       48 + *       secmod.initialize("/home/myself/.mozilla");
  49   49   *   }
  50   50   *
  51   51   *   Provider p = secmod.getModule(ModuleType.KEYSTORE).getProvider();
  52   52   *   KeyStore ks = KeyStore.getInstance("PKCS11", p);
  53   53   *   ks.load(null, password);
  54   54   * </pre>
  55   55   *
  56   56   * @since   1.6
  57   57   * @author  Andreas Sterbenz
  58   58   */
↓ open down ↓ 723 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX