equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 2019, 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. |
7 * published by the Free Software Foundation. |
22 */ |
22 */ |
23 |
23 |
24 /** |
24 /** |
25 * @test |
25 * @test |
26 * @bug 8175029 |
26 * @bug 8175029 |
27 * @library ../../testlibrary |
27 * @library /test/lib |
28 * @summary check that default implementation of |
28 * @summary check that default implementation of |
29 * X509Certificate.verify(PublicKey, Provider) works on custom |
29 * X509Certificate.verify(PublicKey, Provider) works on custom |
30 * X509Certificate impl. |
30 * X509Certificate impl. |
31 */ |
31 */ |
32 |
32 |
45 import java.security.cert.X509Certificate; |
45 import java.security.cert.X509Certificate; |
46 import java.util.Collection; |
46 import java.util.Collection; |
47 import java.util.Date; |
47 import java.util.Date; |
48 import java.util.List; |
48 import java.util.List; |
49 import java.util.Set; |
49 import java.util.Set; |
|
50 import jdk.test.lib.security.CertUtils; |
50 |
51 |
51 public class VerifyDefault { |
52 public class VerifyDefault { |
52 private static final String TEST_CERT = |
53 private static final String TEST_CERT = |
53 "-----BEGIN CERTIFICATE-----\n" + |
54 "-----BEGIN CERTIFICATE-----\n" + |
54 "MIICvTCCAaWgAwIBAgIEGYqL9TANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDEwRT\n" + |
55 "MIICvTCCAaWgAwIBAgIEGYqL9TANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDEwRT\n" + |