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 * <p>
026 * This class is immutable and thread-safe.
027 *
028 * @see <a href="http://docs.oracle.com/javase/6/docs/technotes/guides/security/StandardNames.html">Java Cryptography
029 * Architecture Standard Algorithm Name Documentation</a>
030 * @since 1.7
031 * @version $Id: MessageDigestAlgorithms.html 889935 2013-12-11 05:05:13Z ggregory $
032 */
033 public class MessageDigestAlgorithms {
034
035 private MessageDigestAlgorithms() {
036 // cannot be instantiated.
037 }
038
039 /**
040 * The MD2 message digest algorithm defined in RFC 1319.
041 */
042 public static final String MD2 = "MD2";
043
044 /**
045 * The MD5 message digest algorithm defined in RFC 1321.
046 */
047 public static final String MD5 = "MD5";
048
049 /**
050 * The SHA-1 hash algorithm defined in the FIPS PUB 180-2.
051 */
052 public static final String SHA_1 = "SHA-1";
053
054 /**
055 * The SHA-256 hash algorithm defined in the FIPS PUB 180-2.
056 */
057 public static final String SHA_256 = "SHA-256";
058
059 /**
060 * The SHA-384 hash algorithm defined in the FIPS PUB 180-2.
061 */
062 public static final String SHA_384 = "SHA-384";
063
064 /**
065 * The SHA-512 hash algorithm defined in the FIPS PUB 180-2.
066 */
067 public static final String SHA_512 = "SHA-512";
068
069 }