Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/test/sun/security/tools/keytool/DummyProvider.java
38853 views
/*1* Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223/*24*25*26* @bug 490649027* @summary Dummy security service provider.28* It is cited by the AltProviderPath.sh script.29*/30package org.test.dummy;3132import java.util.*;33import java.security.*;3435public class DummyProvider extends Provider {36public DummyProvider() {37super("Dummy", 0.1, "Dummy Provider");3839//40// KeyStore41//42put("KeyStore.DummyKS", "sun.security.provider.JavaKeyStore$JKS");4344//45// Signature engines46//47put("Signature.SHA1withDSA",48"sun.security.provider.DSA$SHA1withDSA");49put("Alg.Alias.Signature.DSA", "SHA1withDSA");5051//52// Key Pair Generator engines53//54put("KeyPairGenerator.DSA",55"sun.security.provider.DSAKeyPairGenerator");5657//58// Digest engines59//60put("MessageDigest.SHA", "sun.security.provider.SHA");61put("Alg.Alias.MessageDigest.SHA1", "SHA");6263//64// Algorithm Parameter Generator engines65//66put("AlgorithmParameterGenerator.DSA",67"sun.security.provider.DSAParameterGenerator");6869//70// Algorithm Parameter engines71//72put("AlgorithmParameters.DSA",73"sun.security.provider.DSAParameters");7475//76// Key factories77//78put("KeyFactory.DSA", "sun.security.provider.DSAKeyFactory");7980//81// Certificate factories82//83put("CertificateFactory.X.509",84"sun.security.provider.X509Factory");85put("Alg.Alias.CertificateFactory.X509", "X.509");86}87}888990