001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one or more
003     * contributor license agreements.  See the NOTICE file distributed with
004     * this work for additional information regarding copyright ownership.
005     * The ASF licenses this file to You under the Apache License, Version 2.0
006     * (the "License"); you may not use this file except in compliance with
007     * the License.  You may obtain a copy of the License at
008     *
009     *      http://www.apache.org/licenses/LICENSE-2.0
010     *
011     * Unless required by applicable law or agreed to in writing, software
012     * distributed under the License is distributed on an "AS IS" BASIS,
013     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     * See the License for the specific language governing permissions and
015     * limitations under the License.
016     */
017    
018    package org.apache.commons.codec.digest;
019    
020    import java.security.MessageDigest;
021    
022    /**
023     * Standard {@link MessageDigest} algorithm names from the <cite>Java Cryptography Architecture Standard Algorithm Name
024     * Documentation</cite>.
025     *
026     * @see <a href="http://docs.oracle.com/javase/6/docs/technotes/guides/security/StandardNames.html">Java Cryptography
027     *      Architecture Standard Algorithm Name Documentation</a>
028     * @since 1.7
029     * @version $Id: MessageDigestAlgorithms.html 889935 2013-12-11 05:05:13Z ggregory $
030     */
031    public class MessageDigestAlgorithms {
032    
033        private MessageDigestAlgorithms() {
034            // cannot be instantiated.
035        }
036    
037        /**
038         * The MD2 message digest algorithm defined in RFC 1319.
039         */
040        public static final String MD2 = "MD2";
041    
042        /**
043         * The MD5 message digest algorithm defined in RFC 1321.
044         */
045        public static final String MD5 = "MD5";
046    
047        /**
048         * The SHA-1 hash algorithm defined in the FIPS PUB 180-2.
049         */
050        public static final String SHA_1 = "SHA-1";
051    
052        /**
053         * The SHA-256 hash algorithm defined in the FIPS PUB 180-2.
054         */
055        public static final String SHA_256 = "SHA-256";
056    
057        /**
058         * The SHA-384 hash algorithm defined in the FIPS PUB 180-2.
059         */
060        public static final String SHA_384 = "SHA-384";
061    
062        /**
063         * The SHA-512 hash algorithm defined in the FIPS PUB 180-2.
064         */
065        public static final String SHA_512 = "SHA-512";
066    
067    }