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 8048357
27 * @summary PKCS8 Standards Conformance Tests
28 * @library /test/lib
29 * @requires (os.family != "solaris")
30 * @modules java.base/sun.security.pkcs
31 * java.base/sun.security.util
32 * java.base/sun.security.provider
33 * java.base/sun.security.x509
34 * @compile -XDignore.symbol.file PKCS8Test.java
35 * @run main PKCS8Test
36 */
37
38 /*
39 * Skip Solaris since the DSAPrivateKeys returned by
40 * SunPKCS11 Provider are not subclasses of PKCS8Key
41 */
42 import java.io.IOException;
43 import java.math.BigInteger;
44 import java.security.InvalidKeyException;
45 import java.util.Arrays;
46 import sun.security.pkcs.PKCS8Key;
47 import sun.security.provider.DSAPrivateKey;
48 import sun.security.util.DerOutputStream;
49 import sun.security.util.DerValue;
|
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 8048357
27 * @summary PKCS8 Standards Conformance Tests
28 * @library /test/lib
29 * @modules java.base/sun.security.pkcs
30 * java.base/sun.security.util
31 * java.base/sun.security.provider
32 * java.base/sun.security.x509
33 * @compile -XDignore.symbol.file PKCS8Test.java
34 * @run main PKCS8Test
35 */
36
37 /*
38 * Skip Solaris since the DSAPrivateKeys returned by
39 * SunPKCS11 Provider are not subclasses of PKCS8Key
40 */
41 import java.io.IOException;
42 import java.math.BigInteger;
43 import java.security.InvalidKeyException;
44 import java.util.Arrays;
45 import sun.security.pkcs.PKCS8Key;
46 import sun.security.provider.DSAPrivateKey;
47 import sun.security.util.DerOutputStream;
48 import sun.security.util.DerValue;
|