SunECEntries.java revision 1545
1545N/A/*
1545N/A * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
1545N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1545N/A *
1545N/A * This code is free software; you can redistribute it and/or modify it
1545N/A * under the terms of the GNU General Public License version 2 only, as
1545N/A * published by the Free Software Foundation. Sun designates this
1545N/A * particular file as subject to the "Classpath" exception as provided
1545N/A * by Sun in the LICENSE file that accompanied this code.
1545N/A *
1545N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1545N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1545N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1545N/A * version 2 for more details (a copy is included in the LICENSE file that
1545N/A * accompanied this code).
1545N/A *
1545N/A * You should have received a copy of the GNU General Public License version
1545N/A * 2 along with this work; if not, write to the Free Software Foundation,
1545N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1545N/A *
1545N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
1545N/A * CA 95054 USA or visit www.sun.com if you need additional information or
1545N/A * have any questions.
1545N/A */
1545N/A
1545N/Apackage sun.security.ec;
1545N/A
1545N/Aimport java.util.Map;
1545N/A
1545N/A/**
1545N/A * Defines the entries of the SunEC provider.
1545N/A *
1545N/A * @since 1.7
1545N/A */
1545N/Afinal class SunECEntries {
1545N/A
1545N/A private SunECEntries() {
1545N/A // empty
1545N/A }
1545N/A
1545N/A static void putEntries(Map<Object, Object> map) {
1545N/A
1545N/A /*
1545N/A * Signature engines
1545N/A */
1545N/A map.put("Signature.NONEwithECDSA",
1545N/A "sun.security.ec.ECDSASignature$Raw");
1545N/A map.put("Signature.SHA1withECDSA",
1545N/A "sun.security.ec.ECDSASignature$SHA1");
1545N/A map.put("Signature.SHA256withECDSA",
1545N/A "sun.security.ec.ECDSASignature$SHA256");
1545N/A map.put("Signature.SHA384withECDSA",
1545N/A "sun.security.ec.ECDSASignature$SHA384");
1545N/A map.put("Signature.SHA512withECDSA",
1545N/A "sun.security.ec.ECDSASignature$SHA512");
1545N/A
1545N/A String ecKeyClasses = "java.security.interfaces.ECPublicKey" +
1545N/A "|java.security.interfaces.ECPrivateKey";
1545N/A map.put("Signature.NONEwithECDSA SupportedKeyClasses", ecKeyClasses);
1545N/A map.put("Signature.SHA1withECDSA SupportedKeyClasses", ecKeyClasses);
1545N/A map.put("Signature.SHA256withECDSA SupportedKeyClasses", ecKeyClasses);
1545N/A map.put("Signature.SHA384withECDSA SupportedKeyClasses", ecKeyClasses);
1545N/A map.put("Signature.SHA512withECDSA SupportedKeyClasses", ecKeyClasses);
1545N/A
1545N/A /*
1545N/A * Key Pair Generator engine
1545N/A */
1545N/A map.put("KeyPairGenerator.EC", "sun.security.ec.ECKeyPairGenerator");
1545N/A map.put("Alg.Alias.KeyPairGenerator.EllipticCurve", "EC");
1545N/A
1545N/A /*
1545N/A * Key Factory engine
1545N/A */
1545N/A map.put("KeyFactory.EC", "sun.security.ec.ECKeyFactory");
1545N/A map.put("Alg.Alias.KeyFactory.EllipticCurve", "EC");
1545N/A
1545N/A /*
1545N/A * Algorithm Parameter engine
1545N/A */
1545N/A map.put("AlgorithmParameters.EC", "sun.security.ec.ECParameters");
1545N/A map.put("Alg.Alias.AlgorithmParameters.EllipticCurve", "EC");
1545N/A
1545N/A /*
1545N/A * Key Agreement engine
1545N/A */
1545N/A map.put("KeyAgreement.ECDH", "sun.security.ec.ECDHKeyAgreement");
1545N/A map.put("KeyAgreement.ECDH SupportedKeyClasses", ecKeyClasses);
1545N/A
1545N/A /*
1545N/A * Key sizes
1545N/A */
1545N/A map.put("Signature.SHA1withECDSA KeySize", "256");
1545N/A map.put("KeyPairGenerator.EC KeySize", "256");
1545N/A map.put("AlgorithmParameterGenerator.ECDSA KeySize", "256");
1545N/A
1545N/A /*
1545N/A * Implementation type: software or hardware
1545N/A */
1545N/A map.put("Signature.NONEwithECDSA ImplementedIn", "Software");
1545N/A map.put("Signature.SHA1withECDSA ImplementedIn", "Software");
1545N/A map.put("Signature.SHA256withECDSA ImplementedIn", "Software");
1545N/A map.put("Signature.SHA384withECDSA ImplementedIn", "Software");
1545N/A map.put("Signature.SHA512withECDSA ImplementedIn", "Software");
1545N/A map.put("KeyPairGenerator.EC ImplementedIn", "Software");
1545N/A map.put("KeyFactory.EC ImplementedIn", "Software");
1545N/A map.put("KeyAgreement.ECDH ImplementedIn", "Software");
1545N/A map.put("AlgorithmParameters.EC ImplementedIn", "Software");
1545N/A }
1545N/A}