8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 4919147
27 * @summary Support for token-based KeyStores
28 *
29 * TokenStore.keystore password is "TokenStore"
30 */
31
32 import java.io.*;
33 import java.util.*;
34 import java.net.*;
35 import java.security.AllPermission;
36 import java.security.CodeSource;
37 import java.security.ProtectionDomain;
38 import java.security.Permission;
39 import java.security.KeyStore;
40 import java.security.cert.*;
41 import sun.security.provider.*;
42
43 public class TokenStore {
44
45 private static String DIR =
46 System.getProperty("test.classes", ".") + File.separatorChar;
47 private static final char[] storePassword = new char[]
48 { 'T', 'o', 'k', 'e', 'n', 'S', 't', 'o', 'r', 'e' };
49
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 4919147
27 * @summary Support for token-based KeyStores
28 * @modules java.base/sun.security.provider
29 */
30
31 import java.io.*;
32 import java.util.*;
33 import java.net.*;
34 import java.security.AllPermission;
35 import java.security.CodeSource;
36 import java.security.ProtectionDomain;
37 import java.security.Permission;
38 import java.security.KeyStore;
39 import java.security.cert.*;
40 import sun.security.provider.*;
41
42 public class TokenStore {
43
44 private static String DIR =
45 System.getProperty("test.classes", ".") + File.separatorChar;
46 private static final char[] storePassword = new char[]
47 { 'T', 'o', 'k', 'e', 'n', 'S', 't', 'o', 'r', 'e' };
48
|