1 /* |
1 /* |
2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2015, 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. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /** |
24 /** |
25 * @test |
25 * @test |
26 * @bug 4635230 6365103 6366054 6824440 7131084 |
26 * @bug 4635230 6365103 6366054 6824440 7131084 8046724 |
27 * @summary Basic unit tests for validating XML Signatures with JSR 105 |
27 * @summary Basic unit tests for validating XML Signatures with JSR 105 |
28 * @compile -XDignore.symbol.file KeySelectors.java SignatureValidator.java |
28 * @compile -XDignore.symbol.file KeySelectors.java SignatureValidator.java |
29 * X509KeySelector.java ValidationTests.java |
29 * X509KeySelector.java ValidationTests.java |
30 * @run main/othervm ValidationTests |
30 * @run main/othervm ValidationTests |
31 * @author Sean Mullan |
31 * @author Sean Mullan |
88 private final static Test[] VALID_TESTS = { |
88 private final static Test[] VALID_TESTS = { |
89 new Test("signature-enveloped-dsa.xml", KVKS), |
89 new Test("signature-enveloped-dsa.xml", KVKS), |
90 new Test("signature-enveloping-b64-dsa.xml", KVKS), |
90 new Test("signature-enveloping-b64-dsa.xml", KVKS), |
91 new Test("signature-enveloping-dsa.xml", KVKS), |
91 new Test("signature-enveloping-dsa.xml", KVKS), |
92 new Test("signature-enveloping-rsa.xml", KVKS), |
92 new Test("signature-enveloping-rsa.xml", KVKS), |
|
93 new Test("signature-enveloping-p256-sha1.xml", KVKS), |
93 new Test("signature-enveloping-hmac-sha1.xml", SKKS), |
94 new Test("signature-enveloping-hmac-sha1.xml", SKKS), |
94 new Test("signature-external-dsa.xml", KVKS), |
95 new Test("signature-external-dsa.xml", KVKS), |
95 new Test("signature-external-b64-dsa.xml", KVKS), |
96 new Test("signature-external-b64-dsa.xml", KVKS), |
96 new Test("signature-retrievalmethod-rawx509crt.xml", CKS), |
97 new Test("signature-retrievalmethod-rawx509crt.xml", CKS), |
97 new Test("signature-keyname.xml", CKS), |
98 new Test("signature-keyname.xml", CKS), |