equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
92 Token getToken() { |
92 Token getToken() { |
93 return token; |
93 return token; |
94 } |
94 } |
95 |
95 |
96 public SunPKCS11() { |
96 public SunPKCS11() { |
97 super("SunPKCS11-Dummy", 1.8d, "SunPKCS11-Dummy"); |
97 super("SunPKCS11-Dummy", 1.9d, "SunPKCS11-Dummy"); |
98 throw new ProviderException |
98 throw new ProviderException |
99 ("SunPKCS11 requires configuration file argument"); |
99 ("SunPKCS11 requires configuration file argument"); |
100 } |
100 } |
101 |
101 |
102 public SunPKCS11(String configName) { |
102 public SunPKCS11(String configName) { |
125 */ |
125 */ |
126 @Deprecated |
126 @Deprecated |
127 public SunPKCS11(String configName, InputStream configStream) { |
127 public SunPKCS11(String configName, InputStream configStream) { |
128 super("SunPKCS11-" + |
128 super("SunPKCS11-" + |
129 Config.getConfig(configName, configStream).getName(), |
129 Config.getConfig(configName, configStream).getName(), |
130 1.8d, Config.getConfig(configName, configStream).getDescription()); |
130 1.9d, Config.getConfig(configName, configStream).getDescription()); |
131 this.configName = configName; |
131 this.configName = configName; |
132 this.config = Config.removeConfig(configName); |
132 this.config = Config.removeConfig(configName); |
133 |
133 |
134 if (debug != null) { |
134 if (debug != null) { |
135 System.out.println("SunPKCS11 loading " + configName); |
135 System.out.println("SunPKCS11 loading " + configName); |