< prev index next >

test/javax/xml/crypto/dsig/GenerationTests.java

Print this page




   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 4635230 6283345 6303830 6824440 6867348 7094155 8038184 8038349 8046949
  27  *      8046724 8079693
  28  * @summary Basic unit tests for generating XML Signatures with JSR 105



  29  * @compile -XDignore.symbol.file KeySelectors.java SignatureValidator.java
  30  *     X509KeySelector.java GenerationTests.java
  31  * @run main/othervm GenerationTests
  32  * @author Sean Mullan
  33  */
  34 
  35 import java.io.*;
  36 import java.math.BigInteger;
  37 import java.security.Key;
  38 import java.security.KeyFactory;
  39 import java.security.KeyStore;
  40 import java.security.PrivateKey;
  41 import java.security.PublicKey;
  42 import java.security.cert.Certificate;
  43 import java.security.cert.CertificateFactory;
  44 import java.security.cert.X509Certificate;
  45 import java.security.cert.X509CRL;
  46 import java.security.spec.KeySpec;
  47 import java.security.spec.DSAPrivateKeySpec;
  48 import java.security.spec.DSAPublicKeySpec;




   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 4635230 6283345 6303830 6824440 6867348 7094155 8038184 8038349 8046949
  27  *      8046724 8079693
  28  * @summary Basic unit tests for generating XML Signatures with JSR 105
  29  * @modules java.base/sun.security.util
  30  *          java.base/sun.security.x509
  31  *          java.xml.crypto/org.jcp.xml.dsig.internal.dom
  32  * @compile -XDignore.symbol.file KeySelectors.java SignatureValidator.java
  33  *     X509KeySelector.java GenerationTests.java
  34  * @run main/othervm GenerationTests
  35  * @author Sean Mullan
  36  */
  37 
  38 import java.io.*;
  39 import java.math.BigInteger;
  40 import java.security.Key;
  41 import java.security.KeyFactory;
  42 import java.security.KeyStore;
  43 import java.security.PrivateKey;
  44 import java.security.PublicKey;
  45 import java.security.cert.Certificate;
  46 import java.security.cert.CertificateFactory;
  47 import java.security.cert.X509Certificate;
  48 import java.security.cert.X509CRL;
  49 import java.security.spec.KeySpec;
  50 import java.security.spec.DSAPrivateKeySpec;
  51 import java.security.spec.DSAPublicKeySpec;


< prev index next >