41 * @author Andreas Sterbenz |
41 * @author Andreas Sterbenz |
42 * @since 1.5 |
42 * @since 1.5 |
43 */ |
43 */ |
44 final class ProviderConfig { |
44 final class ProviderConfig { |
45 |
45 |
46 private final static sun.security.util.Debug debug = |
46 private static final sun.security.util.Debug debug = |
47 sun.security.util.Debug.getInstance("jca", "ProviderConfig"); |
47 sun.security.util.Debug.getInstance("jca", "ProviderConfig"); |
48 |
48 |
49 // suffix for identifying the SunPKCS11-Solaris provider |
49 // suffix for identifying the SunPKCS11-Solaris provider |
50 private static final String P11_SOL_NAME = "SunPKCS11"; |
50 private static final String P11_SOL_NAME = "SunPKCS11"; |
51 |
51 |
52 // config file argument of the SunPKCS11-Solaris provider |
52 // config file argument of the SunPKCS11-Solaris provider |
53 private static final String P11_SOL_ARG = |
53 private static final String P11_SOL_ARG = |
54 "${java.home}/conf/security/sunpkcs11-solaris.cfg"; |
54 "${java.home}/conf/security/sunpkcs11-solaris.cfg"; |
55 |
55 |
56 // maximum number of times to try loading a provider before giving up |
56 // maximum number of times to try loading a provider before giving up |
57 private final static int MAX_LOAD_TRIES = 30; |
57 private static final int MAX_LOAD_TRIES = 30; |
58 |
58 |
59 // could be provider name (module) or provider class name (legacy) |
59 // could be provider name (module) or provider class name (legacy) |
60 private final String provName; |
60 private final String provName; |
61 |
61 |
62 // argument to the Provider.configure() call, never null |
62 // argument to the Provider.configure() call, never null |