0N/A/*
2362N/A * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage sun.security.rsa;
0N/A
0N/Aimport java.util.Map;
0N/A
0N/A/**
0N/A * Defines the entries of the SunRsaSign provider.
0N/A *
0N/A * @author Andreas Sterbenz
0N/A */
0N/Apublic final class SunRsaSignEntries {
0N/A
0N/A private SunRsaSignEntries() {
0N/A // empty
0N/A }
0N/A
0N/A public static void putEntries(Map<Object, Object> map) {
0N/A
0N/A // main algorithms
0N/A
0N/A map.put("KeyFactory.RSA",
0N/A "sun.security.rsa.RSAKeyFactory");
0N/A map.put("KeyPairGenerator.RSA",
0N/A "sun.security.rsa.RSAKeyPairGenerator");
0N/A map.put("Signature.MD2withRSA",
0N/A "sun.security.rsa.RSASignature$MD2withRSA");
0N/A map.put("Signature.MD5withRSA",
0N/A "sun.security.rsa.RSASignature$MD5withRSA");
0N/A map.put("Signature.SHA1withRSA",
0N/A "sun.security.rsa.RSASignature$SHA1withRSA");
0N/A map.put("Signature.SHA256withRSA",
0N/A "sun.security.rsa.RSASignature$SHA256withRSA");
0N/A map.put("Signature.SHA384withRSA",
0N/A "sun.security.rsa.RSASignature$SHA384withRSA");
0N/A map.put("Signature.SHA512withRSA",
0N/A "sun.security.rsa.RSASignature$SHA512withRSA");
0N/A
0N/A // attributes for supported key classes
0N/A
0N/A String rsaKeyClasses = "java.security.interfaces.RSAPublicKey" +
0N/A "|java.security.interfaces.RSAPrivateKey";
0N/A map.put("Signature.MD2withRSA SupportedKeyClasses", rsaKeyClasses);
0N/A map.put("Signature.MD5withRSA SupportedKeyClasses", rsaKeyClasses);
0N/A map.put("Signature.SHA1withRSA SupportedKeyClasses", rsaKeyClasses);
0N/A map.put("Signature.SHA256withRSA SupportedKeyClasses", rsaKeyClasses);
0N/A map.put("Signature.SHA384withRSA SupportedKeyClasses", rsaKeyClasses);
0N/A map.put("Signature.SHA512withRSA SupportedKeyClasses", rsaKeyClasses);
0N/A
0N/A // aliases
0N/A
0N/A map.put("Alg.Alias.KeyFactory.1.2.840.113549.1.1", "RSA");
0N/A map.put("Alg.Alias.KeyFactory.OID.1.2.840.113549.1.1", "RSA");
0N/A
0N/A map.put("Alg.Alias.KeyPairGenerator.1.2.840.113549.1.1", "RSA");
0N/A map.put("Alg.Alias.KeyPairGenerator.OID.1.2.840.113549.1.1", "RSA");
0N/A
0N/A map.put("Alg.Alias.Signature.1.2.840.113549.1.1.2", "MD2withRSA");
0N/A map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.2", "MD2withRSA");
0N/A
0N/A map.put("Alg.Alias.Signature.1.2.840.113549.1.1.4", "MD5withRSA");
0N/A map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.4", "MD5withRSA");
0N/A
0N/A map.put("Alg.Alias.Signature.1.2.840.113549.1.1.5", "SHA1withRSA");
0N/A map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.5", "SHA1withRSA");
0N/A map.put("Alg.Alias.Signature.1.3.14.3.2.29", "SHA1withRSA");
0N/A
0N/A map.put("Alg.Alias.Signature.1.2.840.113549.1.1.11", "SHA256withRSA");
0N/A map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.11", "SHA256withRSA");
0N/A
0N/A map.put("Alg.Alias.Signature.1.2.840.113549.1.1.12", "SHA384withRSA");
0N/A map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.12", "SHA384withRSA");
0N/A
0N/A map.put("Alg.Alias.Signature.1.2.840.113549.1.1.13", "SHA512withRSA");
0N/A map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.13", "SHA512withRSA");
0N/A
0N/A }
0N/A}